diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-08-12 16:19:44 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-08-12 16:19:44 +0200 |
commit | a44da3c14dc81a60159dbb738a4a8e776a821dee (patch) | |
tree | 7272d0720c23d5c4b3d9bed711c371af87befe1a /src/core/file_sys/ips_layer.cpp | |
parent | Merge pull request #8686 from lat9nq/graft-source (diff) | |
download | yuzu-a44da3c14dc81a60159dbb738a4a8e776a821dee.tar yuzu-a44da3c14dc81a60159dbb738a4a8e776a821dee.tar.gz yuzu-a44da3c14dc81a60159dbb738a4a8e776a821dee.tar.bz2 yuzu-a44da3c14dc81a60159dbb738a4a8e776a821dee.tar.lz yuzu-a44da3c14dc81a60159dbb738a4a8e776a821dee.tar.xz yuzu-a44da3c14dc81a60159dbb738a4a8e776a821dee.tar.zst yuzu-a44da3c14dc81a60159dbb738a4a8e776a821dee.zip |
Diffstat (limited to 'src/core/file_sys/ips_layer.cpp')
-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() { 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); } |