mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09:00
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:
parent
ffdaf23329
commit
3b174a71a3
@ -74,7 +74,10 @@ namespace osu.Desktop
|
|||||||
|
|
||||||
// we want to allow multiple instances to be started when in debug.
|
// we want to allow multiple instances to be started when in debug.
|
||||||
if (!DebugUtils.IsDebugBuild)
|
if (!DebugUtils.IsDebugBuild)
|
||||||
return 0;
|
{
|
||||||
|
Logger.Log(@"osu! does not support multiple running instances.", LoggingTarget.Runtime, LogLevel.Error);
|
||||||
|
Environment.Exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tournamentClient)
|
if (tournamentClient)
|
||||||
|
@ -210,12 +210,6 @@ namespace osu.Game
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
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)
|
if (args?.Length > 0)
|
||||||
{
|
{
|
||||||
var paths = args.Where(a => !a.StartsWith('-')).ToArray();
|
var paths = args.Where(a => !a.StartsWith('-')).ToArray();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user