Permalink
Browse files

Add override for NES classic series games

  • Loading branch information...
endrift committed Oct 22, 2014
1 parent b11528c commit c52edab71a0f3465c508b554130fdccb4108a654
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gba/gba.c
View
@@ -651,6 +651,11 @@ void GBAIllegal(struct ARMCore* cpu, uint32_t opcode) {
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) {

0 comments on commit c52edab

Please sign in to comment.