mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 14:00:16 +02:00
Config: Fixes string enum parser with multiple arguments
Messed up when originally implementing this, substr's second argument is requested substring length, not the ending position. Noticed this while trying to parse multiple FEX_HOSTFEATURES options.
This commit is contained in:
1 parent
ff3f7345b6
commit
09e3371a0d
1 file changed
+1
-1
@@ -118,7 +118,7 @@ namespace Handler {
|
||||
}
|
||||
Begin = End + 1;
|
||||
End = View.find_first_of(',', Begin);
|
||||
Option = View.substr(Begin, End);
|
||||
Option = View.substr(Begin, End - Begin);
|
||||
}
|
||||
|
||||
return fextl::fmt::format("{}", EnumMask);
|
||||
|
||||
Reference in new issue
Block a user