GBA Memory: Fix instability on Wii when using AGBPrint

This commit is contained in:
Vicki Pfau 2020-08-03 15:44:05 -07:00
parent 48e2c099dc
commit 11035f5a77
2 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,6 @@ Emulation fixes:
- GB MBC: Fix MBC1 RAM enable bit selection
- GB MBC: Fix MBC2 bit selection
- GB Video: Always initialize palette
- GBA BIOS: Fix reloading video registers after reset (fixes mgba.io/i/1808)
- GBA Savedata: Fix potential corruption when loading a 1Mbit flash save
- GBA Video: Fix invalid read in mode 4 mosaic
- GBA Video: Fix color of disabled screen
@ -21,6 +20,7 @@ Other fixes:
- CMake: Add missing dllexports.h file to dev installation
- GB Core: Fix extracting SRAM when none is present
- GBA: Fix leak if attempting to load BIOS multiple times
- GBA Memory: Fix instability on Wii when using AGBPrint
- GBA Savedata: Fix extracting save when not yet configured in-game
- Qt: Fix file handle leak on opening an invalid ROM
- Qt: Fix Italian RTC translation (fixes mgba.io/i/1798)

View File

@ -132,7 +132,9 @@ void GBAUnloadROM(struct GBA* gba) {
if (gba->yankedRomSize) {
gba->yankedRomSize = 0;
}
#if !defined(FIXED_ROM_BUFFER) && !defined(__wii__)
mappedMemoryFree(gba->memory.rom, SIZE_CART0);
#endif
}
if (gba->romVf) {