mirror of https://github.com/mgba-emu/mgba.git
Wii: Fix crash on unloading irregularly sized GBA ROMs
This commit is contained in:
parent
f05ba8a35b
commit
510d1e60fc
1
CHANGES
1
CHANGES
|
@ -8,6 +8,7 @@ Other fixes:
|
||||||
- Core: Fix thread unsafety issue when dispatching code to a thread
|
- Core: Fix thread unsafety issue when dispatching code to a thread
|
||||||
- Debugger: Close trace log when done tracing
|
- Debugger: Close trace log when done tracing
|
||||||
- Qt: Fix running proxied video if it gets pushed to the main thread
|
- Qt: Fix running proxied video if it gets pushed to the main thread
|
||||||
|
- Wii: Fix crash on unloading irregularly sized GBA ROMs
|
||||||
|
|
||||||
0.8.4: (2020-10-29)
|
0.8.4: (2020-10-29)
|
||||||
Emulation fixes:
|
Emulation fixes:
|
||||||
|
|
|
@ -132,7 +132,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