core+platforms, add SMS option to select TMS palette for gfx modes 0-3

This commit is contained in:
kub 2024-01-13 16:31:43 +01:00
parent dca20effa2
commit 214a6c624c
7 changed files with 36 additions and 2 deletions

View file

@ -1814,6 +1814,15 @@ static void update_variables(bool first_run)
PicoIn.opt &= ~POPT_EN_YM2413;
}
var.value = NULL;
var.key = "picodrive_smstms";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) {
if (strcmp(var.value, "SG-1000") == 0)
PicoIn.tmsPalette = 1;
else
PicoIn.tmsPalette = 0;
}
var.value = NULL;
var.key = "picodrive_smsmapper";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) {

View file

@ -145,6 +145,20 @@ struct retro_core_option_v2_definition option_defs_us[] = {
},
"Auto"
},
{
"picodrive_smstms",
"Master System Palette in TMS modes",
NULL,
"Choose which colour palette should be used when an SMS game runs in one of the SG-1000 graphics modes.",
NULL,
"system",
{
{ "SMS", NULL },
{ "SG-1000", NULL },
{ NULL, NULL },
},
"SMS"
},
{
"picodrive_ramcart",
"Sega CD RAM Cart",