yuzu-emu
/
yuzu
Archived
1
0
Fork 0

ips_layer: Delimit parsed hex value string

Delimits the hex value string on spaces, slashes, carriage returns or newlines, allowing for comments to be added in-line.
This commit is contained in:
Morph 2022-08-12 10:19:44 -04:00
parent 72bf844110
commit a44da3c14d
1 changed files with 2 additions and 1 deletions

View File

@ -287,7 +287,8 @@ void IPSwitchCompiler::Parse() {
std::copy(value.begin(), value.end(), std::back_inserter(replace)); std::copy(value.begin(), value.end(), std::back_inserter(replace));
} else { } else {
// hex replacement // hex replacement
const auto value = patch_line.substr(9); const auto value =
patch_line.substr(9, patch_line.find_first_of(" /\r\n", 9) - 9);
replace = Common::HexStringToVector(value, is_little_endian); replace = Common::HexStringToVector(value, is_little_endian);
} }