Move startup concurrency check to higher level

Makes more sense to perform this check outside of the game itself now
that we can.
This commit is contained in:
Dean Herbert
2021-09-21 18:00:54 +09:00
parent ffdaf23329
commit 3b174a71a3
2 changed files with 4 additions and 7 deletions

View File

@ -210,12 +210,6 @@ namespace osu.Game
[BackgroundDependencyLoader]
private void load()
{
if (!Host.IsPrimaryInstance && !DebugUtils.IsDebugBuild)
{
Logger.Log(@"osu! does not support multiple running instances.", LoggingTarget.Runtime, LogLevel.Error);
Environment.Exit(0);
}
if (args?.Length > 0)
{
var paths = args.Where(a => !a.StartsWith('-')).ToArray();