Libretro: Add Super Game Boy Color support (closes #3188)

This commit is contained in:
Vicki Pfau 2024-04-30 02:57:41 -07:00
parent df75204a0b
commit 1d2b8bf918
3 changed files with 11 additions and 5 deletions

View File

@ -30,6 +30,7 @@ Misc:
- GB Serialize: Add missing savestate support for MBC6 and NT (newer) - GB Serialize: Add missing savestate support for MBC6 and NT (newer)
- GBA: Improve detection of valid ELF ROMs - GBA: Improve detection of valid ELF ROMs
- GBA Audio: Remove broken XQ audio pending rewrite - GBA Audio: Remove broken XQ audio pending rewrite
- Libretro: Add Super Game Boy Color support (closes mgba.io/i/3188)
- mGUI: Enable auto-softpatching (closes mgba.io/i/2899) - mGUI: Enable auto-softpatching (closes mgba.io/i/2899)
- mGUI: Persist fast forwarding after closing menu (fixes mgba.io/i/2414) - mGUI: Persist fast forwarding after closing menu (fixes mgba.io/i/2414)
- Qt: Handle multiple save game files for disparate games separately (fixes mgba.io/i/2887) - Qt: Handle multiple save game files for disparate games separately (fixes mgba.io/i/2887)

View File

@ -268,6 +268,8 @@ static void _reloadSettings(void) {
model = GB_MODEL_SGB; model = GB_MODEL_SGB;
} else if (strcmp(var.value, "Game Boy Color") == 0) { } else if (strcmp(var.value, "Game Boy Color") == 0) {
model = GB_MODEL_CGB; model = GB_MODEL_CGB;
} else if (strcmp(var.value, "Super Game Boy Color") == 0) {
model = GB_MODEL_SCGB;
} else if (strcmp(var.value, "Game Boy Advance") == 0) { } else if (strcmp(var.value, "Game Boy Advance") == 0) {
model = GB_MODEL_AGB; model = GB_MODEL_AGB;
} else { } else {
@ -278,6 +280,8 @@ static void _reloadSettings(void) {
mCoreConfigSetDefaultValue(&core->config, "gb.model", modelName); mCoreConfigSetDefaultValue(&core->config, "gb.model", modelName);
mCoreConfigSetDefaultValue(&core->config, "sgb.model", modelName); mCoreConfigSetDefaultValue(&core->config, "sgb.model", modelName);
mCoreConfigSetDefaultValue(&core->config, "cgb.model", modelName); mCoreConfigSetDefaultValue(&core->config, "cgb.model", modelName);
mCoreConfigSetDefaultValue(&core->config, "cgb.hybridModel", modelName);
mCoreConfigSetDefaultValue(&core->config, "cgb.sgbModel", modelName);
} }
var.key = "mgba_sgb_borders"; var.key = "mgba_sgb_borders";

View File

@ -87,11 +87,12 @@ struct retro_core_option_v2_definition option_defs_us[] = {
NULL, NULL,
"system", "system",
{ {
{ "Autodetect", NULL }, { "Autodetect", NULL },
{ "Game Boy", NULL }, { "Game Boy", NULL },
{ "Super Game Boy", NULL }, { "Super Game Boy", NULL },
{ "Game Boy Color", NULL }, { "Game Boy Color", NULL },
{ "Game Boy Advance", NULL }, { "Super Game Boy Color", NULL },
{ "Game Boy Advance", NULL },
{ NULL, NULL }, { NULL, NULL },
}, },
"Autodetect" "Autodetect"