Wii: Fix crash on unloading irregularly sized GBA ROMs

This commit is contained in:
Vicki Pfau 2020-11-18 18:36:19 -08:00
parent 43bc47742f
commit 2def7289f3
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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
} }