mirror of https://github.com/mgba-emu/mgba.git
Wii: Fix crash on unloading irregularly sized GBA ROMs
This commit is contained in:
parent
43bc47742f
commit
2def7289f3
1
CHANGES
1
CHANGES
|
@ -62,6 +62,7 @@ Other fixes:
|
||||||
- Qt: Fix cancelling pausing before the frame ends
|
- Qt: Fix cancelling pausing before the frame ends
|
||||||
- SM83: Simplify register pair access on big endian
|
- SM83: Simplify register pair access on big endian
|
||||||
- SM83: Disassemble STOP as one byte
|
- SM83: Disassemble STOP as one byte
|
||||||
|
- Wii: Fix crash on unloading irregularly sized GBA ROMs
|
||||||
Misc:
|
Misc:
|
||||||
- 3DS: Use "wide mode" where applicable for slightly better filtering
|
- 3DS: Use "wide mode" where applicable for slightly better filtering
|
||||||
- Core: Add savedataUpdated callback
|
- Core: Add savedataUpdated callback
|
||||||
|
|
|
@ -130,7 +130,7 @@ void GBAUnloadROM(struct GBA* gba) {
|
||||||
if (gba->yankedRomSize) {
|
if (gba->yankedRomSize) {
|
||||||
gba->yankedRomSize = 0;
|
gba->yankedRomSize = 0;
|
||||||
}
|
}
|
||||||
#if !defined(FIXED_ROM_BUFFER) && !defined(__wii__)
|
#ifndef FIXED_ROM_BUFFER
|
||||||
mappedMemoryFree(gba->memory.rom, SIZE_CART0);
|
mappedMemoryFree(gba->memory.rom, SIZE_CART0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue