mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sms, add system select option
This commit is contained in:
parent
cc1547e8cd
commit
280bfc3ca7
9 changed files with 97 additions and 28 deletions
|
@ -1450,15 +1450,6 @@ static void update_variables(bool first_run)
|
|||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
|
||||
PicoSetInputDevice(1, input_name_to_val(var.value));
|
||||
|
||||
var.value = NULL;
|
||||
var.key = "picodrive_sprlim";
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) {
|
||||
if (strcmp(var.value, "enabled") == 0)
|
||||
PicoIn.opt |= POPT_DIS_SPRITE_LIM;
|
||||
else
|
||||
PicoIn.opt &= ~POPT_DIS_SPRITE_LIM;
|
||||
}
|
||||
|
||||
var.value = NULL;
|
||||
var.key = "picodrive_ramcart";
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) {
|
||||
|
@ -1468,6 +1459,17 @@ static void update_variables(bool first_run)
|
|||
PicoIn.opt &= ~POPT_EN_MCD_RAMCART;
|
||||
}
|
||||
|
||||
var.value = NULL;
|
||||
var.key = "picodrive_smstype";
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) {
|
||||
if (strcmp(var.value, "Auto") == 0)
|
||||
PicoIn.hwSelect = PHWS_AUTO;
|
||||
else if (strcmp(var.value, "Game Gear") == 0)
|
||||
PicoIn.hwSelect = PHWS_GG;
|
||||
else
|
||||
PicoIn.hwSelect = PHWS_SMS;
|
||||
}
|
||||
|
||||
OldPicoRegionOverride = PicoIn.regionOverride;
|
||||
var.value = NULL;
|
||||
var.key = "picodrive_region";
|
||||
|
@ -1512,6 +1514,15 @@ static void update_variables(bool first_run)
|
|||
environ_cb(RETRO_ENVIRONMENT_SET_GEOMETRY, &av_info);
|
||||
}
|
||||
|
||||
var.value = NULL;
|
||||
var.key = "picodrive_sprlim";
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) {
|
||||
if (strcmp(var.value, "enabled") == 0)
|
||||
PicoIn.opt |= POPT_DIS_SPRITE_LIM;
|
||||
else
|
||||
PicoIn.opt &= ~POPT_DIS_SPRITE_LIM;
|
||||
}
|
||||
|
||||
old_show_overscan = show_overscan;
|
||||
var.value = NULL;
|
||||
var.key = "picodrive_overscan";
|
||||
|
|
|
@ -74,9 +74,9 @@ struct retro_core_option_definition option_defs_us[] = {
|
|||
"3 button pad"
|
||||
},
|
||||
{
|
||||
"picodrive_sprlim",
|
||||
"No sprite limit",
|
||||
"Enable this to remove the sprite limit.",
|
||||
"picodrive_ramcart",
|
||||
"MegaCD RAM cart",
|
||||
"Emulate a MegaCD RAM cart, used for save game data. WARNING: When enabled, internal save data (BRAM) will be discarded.",
|
||||
{
|
||||
{ "disabled", NULL },
|
||||
{ "enabled", NULL },
|
||||
|
@ -85,12 +85,13 @@ struct retro_core_option_definition option_defs_us[] = {
|
|||
"disabled"
|
||||
},
|
||||
{
|
||||
"picodrive_ramcart",
|
||||
"MegaCD RAM cart",
|
||||
"Emulate a MegaCD RAM cart, used for save game data. WARNING: When enabled, internal save data (BRAM) will be discarded.",
|
||||
"picodrive_smstype",
|
||||
"Master System type",
|
||||
"Choose which type of system the core should emulate for Master system",
|
||||
{
|
||||
{ "disabled", NULL },
|
||||
{ "enabled", NULL },
|
||||
{ "Auto", NULL },
|
||||
{ "Game Gear", NULL },
|
||||
{ "Master System", NULL },
|
||||
{ NULL, NULL },
|
||||
},
|
||||
"disabled"
|
||||
|
@ -121,6 +122,17 @@ struct retro_core_option_definition option_defs_us[] = {
|
|||
},
|
||||
"PAR"
|
||||
},
|
||||
{
|
||||
"picodrive_sprlim",
|
||||
"No sprite limit",
|
||||
"Enable this to remove the sprite limit.",
|
||||
{
|
||||
{ "disabled", NULL },
|
||||
{ "enabled", NULL },
|
||||
{ NULL, NULL },
|
||||
},
|
||||
"disabled"
|
||||
},
|
||||
{
|
||||
"picodrive_overscan",
|
||||
"Show Overscan",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue