mirror of https://github.com/mgba-emu/mgba.git
Compare commits
3 Commits
53adae6a5a
...
37d10385a3
Author | SHA1 | Date |
---|---|---|
Felix Jones | 37d10385a3 | |
Felix Jones | 536c34c9ad | |
Felix Jones | ac6f3a3060 |
|
@ -430,6 +430,23 @@ 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;
|
||||||
|
}
|
||||||
|
GBAOverrideApply(gba, &override);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue