Compare commits

...

3 Commits

Author SHA1 Message Date
Felix Jones 37d10385a3
Merge 536c34c9ad into 4007e19736 2024-12-29 21:12:56 -08:00
Felix Jones 536c34c9ad
Merge branch 'mgba-emu:master' into master 2024-11-03 15:40:18 +01:00
Felix Jones ac6f3a3060 Use Everdrive style UTTD "U" save type detection 2024-11-03 15:39:19 +01:00
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);
}
}
}