sms, add sg-1000 support

This commit is contained in:
kub 2022-02-28 21:45:50 +00:00
parent 216c9f17fa
commit df6c895c5c
9 changed files with 72 additions and 41 deletions

View file

@ -332,9 +332,11 @@ static void system_announce(void)
if (PicoIn.AHW & PAHW_SMS) {
sys_name = "Master System";
if (Pico.m.hardware & 0x1)
if (Pico.m.hardware & PMS_HW_GG)
sys_name = "Game Gear";
else if (Pico.m.hardware & 0x4)
else if (Pico.m.hardware & PMS_HW_SG)
sys_name = "SG-1000";
else if (Pico.m.hardware & PMS_HW_JAP)
sys_name = "Mark III";
#ifdef NO_SMS
extra = " [no support]";

View file

@ -536,7 +536,7 @@ static int menu_loop_32x_options(int id, int keys)
#ifndef NO_SMS
static const char *sms_hardwares[] = { "auto", "Game Gear", "Master System", NULL };
static const char *sms_hardwares[] = { "auto", "Game Gear", "Master System", "SG-1000", NULL };
static const char *sms_mappers[] = { "auto", "Sega", "Codemasters", "Korea", "Korea MSX", "Korea X-in-1", "Korea 4-Pak", "Korea Janggun", "Korea Nemesis", "Taiwan 8K RAM", NULL };
static const char h_smsfm[] = "FM sound is only supported by few games\nOther games may crash with FM enabled";

View file

@ -1494,6 +1494,8 @@ static void update_variables(bool first_run)
PicoIn.hwSelect = PHWS_AUTO;
else if (strcmp(var.value, "Game Gear") == 0)
PicoIn.hwSelect = PHWS_GG;
else if (strcmp(var.value, "SG-1000") == 0)
PicoIn.hwSelect = PHWS_SG;
else
PicoIn.hwSelect = PHWS_SMS;
}
@ -1527,7 +1529,7 @@ static void update_variables(bool first_run)
else if (strcmp(var.value, "Korea Nemesis") == 0)
PicoIn.mapper = PMS_MAP_NEMESIS;
else if (strcmp(var.value, "Taiwan 8K RAM") == 0)
PicoIn.mapper = PMS_MAP_8KRAM;
PicoIn.mapper = PMS_MAP_8KBRAM;
else
PicoIn.mapper = PMS_MAP_SEGA;
}

View file

@ -117,6 +117,7 @@ struct retro_core_option_v2_definition option_defs_us[] = {
{ "Auto", NULL },
{ "Game Gear", NULL },
{ "Master System", NULL },
{ "SG-1000" , NULL },
{ NULL, NULL },
},
"Auto"