1
0
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:
Dean Herbert 2018-08-16 22:01:04 +09:00
parent ae3ce910d2
commit 12b81df2f3

View File

@ -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);