all repos — mgba @ 187687403c2cf6f970a1eb32cd940d17c02275cf

mGBA Game Boy Advance Emulator

Fix EEPROM initialization
Jeffrey Pfau jeffrey@endrift.com
Sun, 13 Oct 2013 12:14:32 -0700
commit

187687403c2cf6f970a1eb32cd940d17c02275cf

parent

a20117ec1434c54a8cda6efaa488b60f0e43b9f2

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/gba/gba-memory.csrc/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) {