This commit is contained in:
Felix Jones 2024-12-29 21:12:56 -08:00 committed by GitHub
commit 37d10385a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 17 additions and 0 deletions

View File

@ -430,6 +430,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);
}
}
}