Skip to content

Commit

Permalink
- Default zero trigger level for games supporting the DK Bongos.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Sep 29, 2024
1 parent 76a7b0e commit cb4334c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cube/swiss/source/config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ int config_update_game(ConfigEntry* entry, bool checkConfigDevice) {
return res;
}

static char triggerLevelEntries[][4] = {"GKGE", "GKGJ", "GKGP", "GY2E", "GY2J", "GY2P", "GY3E", "GY3J", "GYBE", "GYBJ", "GYBP"};
static char emulateReadSpeedEntries[][4] = {"GQSD", "GQSE", "GQSF", "GQSI", "GQSP", "GQSS", "GTOJ"};
static char emulateEthernetEntries[][4] = {"DPSJ", "GHEE", "GHEJ", "GKYE", "GKYJ", "GKYP", "GM4E", "GM4J", "GM4P", "GPJJ", "GPOE", "GPOJ", "GPOP", "GPSE", "GPSJ", "GPSP", "GTEE", "GTEJ", "GTEP", "GTEW", "PHEJ"};

Expand All @@ -322,6 +323,12 @@ void config_defaults(ConfigEntry *entry) {
entry->emulateEthernet = swissSettings.emulateEthernet;
entry->preferCleanBoot = swissSettings.preferCleanBoot;

for(int i = 0; i < sizeof(triggerLevelEntries) / sizeof(*triggerLevelEntries); i++) {
if(!strncmp(entry->game_id, triggerLevelEntries[i], 4)) {
entry->triggerLevel = 0;
break;
}
}
for(int i = 0; i < sizeof(emulateReadSpeedEntries) / sizeof(*emulateReadSpeedEntries); i++) {
if(!strncmp(entry->game_id, emulateReadSpeedEntries[i], 4)) {
entry->emulateReadSpeed = 1;
Expand Down

0 comments on commit cb4334c

Please sign in to comment.