Browse Source

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.
pull/15/merge
Morph 3 years ago
parent
commit
a44da3c14d
  1. 3
      src/core/file_sys/ips_layer.cpp

3
src/core/file_sys/ips_layer.cpp

@ -287,7 +287,8 @@ void IPSwitchCompiler::Parse() {
std::copy(value.begin(), value.end(), std::back_inserter(replace));
} else {
// 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);
}

Loading…
Cancel
Save