mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-22 11:45:42 +01:00
Merge pull request #8755 from Morph1984/delimit-ips
ips_layer: Delimit parsed hex value string
This commit is contained in:
commit
cba3b05c94
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user