mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 14:52:56 +08:00
Fit the identation of peppy's code.
This commit is contained in:
parent
f2496d33d2
commit
5c6d535832
@ -1,4 +1,4 @@
|
|||||||
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
@ -63,11 +63,11 @@ namespace osu.Game
|
|||||||
if (args.Length == 1 && File.Exists(args[0]))
|
if (args.Length == 1 && File.Exists(args[0]))
|
||||||
{
|
{
|
||||||
BeatmapIPC.SendMessage(new ImportBeatmap { Path = args[0] }).Wait();
|
BeatmapIPC.SendMessage(new ImportBeatmap { Path = args[0] }).Wait();
|
||||||
Logger.Log(@"Sent file to running instance");
|
Logger.Log(@"Sent file to running instance");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Logger.Log(@"osu! does not support multiple running instances.", LoggingTarget.Runtime, LogLevel.Error);
|
Logger.Log(@"osu! does not support multiple running instances.", LoggingTarget.Runtime, LogLevel.Error);
|
||||||
Environment.Exit(0);
|
Environment.Exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
BeatmapIPC.MessageReceived += message =>
|
BeatmapIPC.MessageReceived += message =>
|
||||||
@ -80,9 +80,9 @@ namespace osu.Game
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
// TODO: Show the user some info?
|
// TODO: Show the user some info?
|
||||||
Logger.Log($@"Failed to import beatmap: {ex}", LoggingTarget.Runtime, LogLevel.Error);
|
Logger.Log($@"Failed to import beatmap: {ex}", LoggingTarget.Runtime, LogLevel.Error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
base.Load(game);
|
base.Load(game);
|
||||||
|
Loading…
Reference in New Issue
Block a user