mirror of
https://github.com/ppy/osu
synced 2025-02-17 02:47:19 +00:00
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 @@ namespace osu.Desktop
|
|||||||
var split = arg.Split('=');
|
var split = arg.Split('=');
|
||||||
|
|
||||||
var key = split[0];
|
var key = split[0];
|
||||||
var val = split[1];
|
var val = split.Length > 1 ? split[1] : string.Empty;
|
||||||
|
|
||||||
switch (key)
|
switch (key)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user