diff --git a/src/gba/overrides.c b/src/gba/overrides.c index a63616e613b..30d927ed3cf 100644 --- a/src/gba/overrides.c +++ b/src/gba/overrides.c @@ -424,6 +424,23 @@ void GBAOverrideApplyDefaults(struct GBA* gba, const struct Configuration* overr GBAOverrideApply(gba, &override); } else if (GBAOverrideFind(overrides, &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); } } }