mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +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)
|
||||
{
|
||||
var paths = args.Where(a => !a.StartsWith(@"-"));
|
||||
|
||||
Task.Run(() => Import(paths.ToArray()));
|
||||
var paths = args.Where(a => !a.StartsWith(@"-")).ToArray();
|
||||
if (paths.Length > 0)
|
||||
Task.Run(() => Import(paths));
|
||||
}
|
||||
|
||||
dependencies.CacheAs(this);
|
||||
|
Reference in New Issue
Block a user