Fix EEPROM initialization
Jeffrey Pfau jeffrey@endrift.com
Sun, 13 Oct 2013 12:14:32 -0700
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba-memory.c
→
src/gba/gba-memory.c
@@ -721,7 +721,8 @@ source += sourceOffset;
dest += destOffset; } } else if (destRegion == REGION_CART2_EX) { - if (memory->savedata.type != SAVEDATA_EEPROM) { + if (memory->savedata.type == SAVEDATA_NONE) { + GBASavedataInit(&memory->savedata, memory->p->savefile); GBASavedataInitEEPROM(&memory->savedata); } while (wordsRemaining) {