mirror of https://github.com/mgba-emu/mgba.git
Util: Allow loading IPS patches that grow the ROM
This commit is contained in:
parent
68790c1b2a
commit
0aef1bc6df
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue