mirror of https://github.com/mgba-emu/mgba.git
Fix EEPROM initialization
This commit is contained in:
parent
a20117ec14
commit
187687403c
|
@ -721,7 +721,8 @@ void GBAMemoryServiceDMA(struct GBAMemory* memory, int number, struct GBADMA* in
|
||||||
dest += destOffset;
|
dest += destOffset;
|
||||||
}
|
}
|
||||||
} else if (destRegion == REGION_CART2_EX) {
|
} 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);
|
GBASavedataInitEEPROM(&memory->savedata);
|
||||||
}
|
}
|
||||||
while (wordsRemaining) {
|
while (wordsRemaining) {
|
||||||
|
|
Loading…
Reference in New Issue