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:
Ryan Houdek committed 2023-10-27 12:04:04 -07:00
1 parent ff3f7345b6
commit 09e3371a0d
1 file changed
+1 -1
+1 -1
View File
@@ -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);