mirror of
https://github.com/libretro/mgba.git
synced 2024-11-23 16:10:01 +00:00
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
|
||||
- SM83: Simplify register pair access on big endian
|
||||
- SM83: Disassemble STOP as one byte
|
||||
- Wii: Fix crash on unloading irregularly sized GBA ROMs
|
||||
Misc:
|
||||
- 3DS: Use "wide mode" where applicable for slightly better filtering
|
||||
- Core: Add savedataUpdated callback
|
||||
|
@ -130,7 +130,7 @@ void GBAUnloadROM(struct GBA* gba) {
|
||||
if (gba->yankedRomSize) {
|
||||
gba->yankedRomSize = 0;
|
||||
}
|
||||
#if !defined(FIXED_ROM_BUFFER) && !defined(__wii__)
|
||||
#ifndef FIXED_ROM_BUFFER
|
||||
mappedMemoryFree(gba->memory.rom, SIZE_CART0);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user