mirror of https://github.com/mgba-emu/mgba.git
Add override for NES classic series games
This commit is contained in:
parent
b11528c69d
commit
c52edab71a
|
@ -651,6 +651,11 @@ void GBAIllegal(struct ARMCore* cpu, uint32_t opcode) {
|
||||||
void _checkOverrides(struct GBA* gba, uint32_t id) {
|
void _checkOverrides(struct GBA* gba, uint32_t id) {
|
||||||
int i;
|
int i;
|
||||||
gba->busyLoop = -1;
|
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) {
|
for (i = 0; _overrides[i].id[0]; ++i) {
|
||||||
const uint32_t* overrideId = (const uint32_t*) _overrides[i].id;
|
const uint32_t* overrideId = (const uint32_t*) _overrides[i].id;
|
||||||
if (*overrideId == id) {
|
if (*overrideId == id) {
|
||||||
|
|
Loading…
Reference in New Issue