mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Fix parameter parsing for = symbol (#687)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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('"');
|
||||
|
||||
Reference in New Issue
Block a user