mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
Fix unhandled exception on startup when arguments are present
This commit is contained in:
parent
ae3ce910d2
commit
12b81df2f3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user