mirror of https://github.com/ppy/osu
Merge pull request #13989 from Henry-YSLin/fix-launch-args-parsing
Guard against `IndexOutOfRangeException` when parsing launch arguments
This commit is contained in:
commit
befab14a86
|
@ -32,7 +32,7 @@ public static int Main(string[] args)
|
|||
var split = arg.Split('=');
|
||||
|
||||
var key = split[0];
|
||||
var val = split[1];
|
||||
var val = split.Length > 1 ? split[1] : string.Empty;
|
||||
|
||||
switch (key)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue