Fix parameter parsing for = symbol (#687)

This commit is contained in:
Deterous
2024-04-06 10:27:57 +09:00
committed by GitHub
parent 771483ac14
commit 6ecbbb6978
2 changed files with 6 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
### WIP (xxxx-xx-xx)
- Fix parameter parsing for `=` symbol (Deterous)
### 3.1.5 (2024-04-05)
- Handle `.0.physical` files from Redumpers

View File

@@ -994,11 +994,9 @@ namespace MPF.Core.Modules
if (!IsFlagSupported(longFlagString))
return null;
string[] commandParts = parts[i].Split('=');
if (commandParts.Length != 2)
return null;
int loc = parts[i].IndexOf('=');
string valuePart = commandParts[1];
string valuePart = parts[i].Substring(loc + 1);
this[longFlagString] = true;
return valuePart.Trim('"');