diff options
| author | Mat M <mathew1800@gmail.com> | 2018-10-25 17:54:38 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-25 17:54:38 -0400 | 
| commit | a141b46b5c6713952ecd31c591c59f99b898d395 (patch) | |
| tree | 5947f2a33803a1ef48d259dadc5060e10f0c37a0 | |
| parent | e54c9e19f352123335574f2dd63d3db9bbbe4569 (diff) | |
| parent | 9a87ece8376530b85df5e21daac317dd2393097c (diff) | |
Merge pull request #1583 from DarkLordZach/rle-size
ips_layer: Use rle_size instead of data_size in RLE patch application
| -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) {              u16 rle_size{};              if (ips->ReadObject(&rle_size, offset) != sizeof(u16))                  return nullptr; -            rle_size = Common::swap16(data_size); +            rle_size = Common::swap16(rle_size);              offset += sizeof(u16);              const auto data = ips->ReadByte(offset++);  | 
