mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-10-26 16:29:37 -04:00
core+platforms, add SMS option to select TMS palette for gfx modes 0-3
This commit is contained in:
parent
dca20effa2
commit
214a6c624c
7 changed files with 36 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue