mirror of https://github.com/mgba-emu/mgba.git
Compare commits
3 Commits
b24e74bef8
...
ee830808ef
Author | SHA1 | Date |
---|---|---|
Felix Jones | ee830808ef | |
Felix Jones | 5dca66ac5d | |
Felix Jones | 7c1302e9bc |
|
@ -424,6 +424,25 @@ void GBAOverrideApplyDefaults(struct GBA* gba, const struct Configuration* overr
|
||||||
GBAOverrideApply(gba, &override);
|
GBAOverrideApply(gba, &override);
|
||||||
} else if (GBAOverrideFind(overrides, &override)) {
|
} else if (GBAOverrideFind(overrides, &override)) {
|
||||||
GBAOverrideApply(gba, &override);
|
GBAOverrideApply(gba, &override);
|
||||||
|
} else {
|
||||||
|
// Apply Everdrive UTTD save detection
|
||||||
|
switch (override.id[0]) {
|
||||||
|
case '1':
|
||||||
|
override.savetype = SAVEDATA_EEPROM;
|
||||||
|
break;
|
||||||
|
case '2':
|
||||||
|
override.savetype = SAVEDATA_SRAM;
|
||||||
|
break;
|
||||||
|
case '3':
|
||||||
|
override.savetype = SAVEDATA_FLASH512;
|
||||||
|
break;
|
||||||
|
case '4':
|
||||||
|
override.savetype = SAVEDATA_FLASH1M;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
// Enable RTC for unknown ROMs
|
||||||
|
override.hardware = HW_RTC;
|
||||||
|
GBAOverrideApply(gba, &override);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue