Compare commits

...

3 Commits

Author SHA1 Message Date
Felix Jones ee830808ef
Merge 5dca66ac5d into 11787df6cd 2024-09-16 10:16:37 -07:00
Felix Jones 5dca66ac5d Use Everdrive style UTTD "U" save type detection 2023-11-17 16:29:29 +01:00
Felix Jones 7c1302e9bc Enable GBA core RTC hardware by default 2023-11-17 16:28:53 +01:00
1 changed files with 19 additions and 0 deletions

View File

@ -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);
} }
} }
} }