mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Fix unhandled exception on startup when arguments are present
This commit is contained in:
@ -151,9 +151,9 @@ namespace osu.Game
|
|||||||
|
|
||||||
if (args?.Length > 0)
|
if (args?.Length > 0)
|
||||||
{
|
{
|
||||||
var paths = args.Where(a => !a.StartsWith(@"-"));
|
var paths = args.Where(a => !a.StartsWith(@"-")).ToArray();
|
||||||
|
if (paths.Length > 0)
|
||||||
Task.Run(() => Import(paths.ToArray()));
|
Task.Run(() => Import(paths));
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies.CacheAs(this);
|
dependencies.CacheAs(this);
|
||||||
|
Reference in New Issue
Block a user