all repos — mgba @ 0aef1bc6df48a302284fee37b8834d8aec09b379

mGBA Game Boy Advance Emulator

Util: Allow loading IPS patches that grow the ROM
Jeffrey Pfau jeffrey@endrift.com
Sun, 28 Jun 2015 02:00:33 -0700
commit

0aef1bc6df48a302284fee37b8834d8aec09b379

parent

68790c1b2a70f617a1798811ba1c50614a27b482

2 files changed, 3 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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) {