Util: Allow loading IPS patches that grow the ROM
Jeffrey Pfau jeffrey@endrift.com
Sun, 28 Jun 2015 02:00:33 -0700
2 files changed,
3 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -49,6 +49,7 @@ - GBA Video: Fix windows not affecting sprites
- VFS: Fix line-reading to return proper values - GBA Memory: Fix load/store multiple video memory waitstates - GBA: Fix timing of reading from timer registers + - Util: Allow loading IPS patches that grow the ROM Misc: - Qt: Handle saving input settings better - Debugger: Free watchpoints in addition to breakpoints
M
src/util/patch-ips.c
→
src/util/patch-ips.c
@@ -39,7 +39,8 @@ }
size_t _IPSOutputSize(struct Patch* patch, size_t inSize) { UNUSED(patch); - return inSize; + UNUSED(inSize); + return 16 * 1024 * 1024; // IPS patches can grow up to 16MiB, but not beyond } bool _IPSApplyPatch(struct Patch* patch, void* in, size_t inSize, void* out, size_t outSize) {