diff options
| author | 2018-10-25 17:54:38 -0400 | |
|---|---|---|
| committer | 2018-10-25 17:54:38 -0400 | |
| commit | a141b46b5c6713952ecd31c591c59f99b898d395 (patch) | |
| tree | 5947f2a33803a1ef48d259dadc5060e10f0c37a0 /src | |
| parent | Merge pull request #1584 from FearlessTobi/patch-3 (diff) | |
| parent | ips_layer: Use rle_size instead of data_size in RLE patch application (diff) | |
| download | yuzu-a141b46b5c6713952ecd31c591c59f99b898d395.tar.gz yuzu-a141b46b5c6713952ecd31c591c59f99b898d395.tar.xz yuzu-a141b46b5c6713952ecd31c591c59f99b898d395.zip | |
Merge pull request #1583 from DarkLordZach/rle-size
ips_layer: Use rle_size instead of data_size in RLE patch application
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/file_sys/ips_layer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index 554eae9bc..999939d5a 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp | |||
| @@ -99,7 +99,7 @@ VirtualFile PatchIPS(const VirtualFile& in, const VirtualFile& ips) { | |||
| 99 | u16 rle_size{}; | 99 | u16 rle_size{}; |
| 100 | if (ips->ReadObject(&rle_size, offset) != sizeof(u16)) | 100 | if (ips->ReadObject(&rle_size, offset) != sizeof(u16)) |
| 101 | return nullptr; | 101 | return nullptr; |
| 102 | rle_size = Common::swap16(data_size); | 102 | rle_size = Common::swap16(rle_size); |
| 103 | offset += sizeof(u16); | 103 | offset += sizeof(u16); |
| 104 | 104 | ||
| 105 | const auto data = ips->ReadByte(offset++); | 105 | const auto data = ips->ReadByte(offset++); |