all repos — mgba @ c77ed8c11e03a2bb22bfb8111ac2d4fb8698d786

mGBA Game Boy Advance Emulator

Only reset save type manually for flash
Jeffrey Pfau jeffrey@endrift.com
Mon, 21 Oct 2013 01:28:41 -0700
commit

c77ed8c11e03a2bb22bfb8111ac2d4fb8698d786

parent

fcaa0eb0662c66b293c26034261a9489da81e345

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

jump to
M src/gba/gba.csrc/gba/gba.c

@@ -466,10 +466,10 @@ void _checkOverrides(struct GBA* gba, uint32_t id) {

int i; for (i = 0; _overrides[i].id; ++i) { if (_overrides[i].id == id) { - gba->memory.savedata.type = _overrides[i].type; switch (_overrides[i].type) { case SAVEDATA_FLASH512: case SAVEDATA_FLASH1M: + gba->memory.savedata.type = _overrides[i].type; GBASavedataInitFlash(&gba->memory.savedata); break; case SAVEDATA_EEPROM: