diff options
| author | 2022-08-12 14:12:10 -0700 | |
|---|---|---|
| committer | 2022-08-12 14:12:10 -0700 | |
| commit | cba3b05c94776bebae07b3af0b8d7dcf0516cfff (patch) | |
| tree | f09b370c13ca2b98bf6025b5c274b728186cb032 | |
| parent | Merge pull request #8741 from Docteh/aboot (diff) | |
| parent | ips_layer: Delimit parsed hex value string (diff) | |
| download | yuzu-cba3b05c94776bebae07b3af0b8d7dcf0516cfff.tar.gz yuzu-cba3b05c94776bebae07b3af0b8d7dcf0516cfff.tar.xz yuzu-cba3b05c94776bebae07b3af0b8d7dcf0516cfff.zip | |
Merge pull request #8755 from Morph1984/delimit-ips
ips_layer: Delimit parsed hex value string
| -rw-r--r-- | src/core/file_sys/ips_layer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index 4b35ca82f..a33dbe94b 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp | |||
| @@ -287,7 +287,8 @@ void IPSwitchCompiler::Parse() { | |||
| 287 | std::copy(value.begin(), value.end(), std::back_inserter(replace)); | 287 | std::copy(value.begin(), value.end(), std::back_inserter(replace)); |
| 288 | } else { | 288 | } else { |
| 289 | // hex replacement | 289 | // hex replacement |
| 290 | const auto value = patch_line.substr(9); | 290 | const auto value = |
| 291 | patch_line.substr(9, patch_line.find_first_of(" /\r\n", 9) - 9); | ||
| 291 | replace = Common::HexStringToVector(value, is_little_endian); | 292 | replace = Common::HexStringToVector(value, is_little_endian); |
| 292 | } | 293 | } |
| 293 | 294 | ||