all repos — mgba @ c52edab71a0f3465c508b554130fdccb4108a654

mGBA Game Boy Advance Emulator

Add override for NES classic series games
Jeffrey Pfau jeffrey@endrift.com
Tue, 21 Oct 2014 22:10:20 -0700
commit

c52edab71a0f3465c508b554130fdccb4108a654

parent

b11528c69df86c3be49ac4715495d38b1309b53e

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

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

@@ -651,6 +651,11 @@

void _checkOverrides(struct GBA* gba, uint32_t id) { int i; gba->busyLoop = -1; + if ((id & 0xFF) == 'F') { + GBALog(gba, GBA_LOG_DEBUG, "Found Classic NES Series game, using EEPROM saves"); + GBASavedataInitEEPROM(&gba->memory.savedata); + return; + } for (i = 0; _overrides[i].id[0]; ++i) { const uint32_t* overrideId = (const uint32_t*) _overrides[i].id; if (*overrideId == id) {