Util: Allow loading IPS patches that grow the ROM

This commit is contained in:
Jeffrey Pfau 2015-06-28 02:00:33 -07:00
parent 68790c1b2a
commit 0aef1bc6df
2 changed files with 3 additions and 1 deletions

View File

@ -49,6 +49,7 @@ Bugfixes:
- 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

View File

@ -39,7 +39,8 @@ bool loadPatchIPS(struct Patch* patch) {
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) {