[libretro] Expose "Memory Stick inserted" option

This commit is contained in:
BEN ENGLISCH 2023-12-22 17:19:45 -06:00
parent 33c0052c70
commit d023c9887b
2 changed files with 18 additions and 0 deletions

View file

@ -585,6 +585,14 @@ static void check_variables(CoreParameter &coreParam)
g_Config.bAnalogIsCircular = true;
}
var.key = "ppsspp_memstick_inserted";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (!strcmp(var.value, "disabled"))
g_Config.bMemStickInserted = false;
else
g_Config.bMemStickInserted = true;
}
var.key = "ppsspp_internal_resolution";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)

View file

@ -271,6 +271,16 @@ struct retro_core_option_v2_definition option_defs_us[] = {
BOOL_OPTIONS,
"disabled"
},
{
"ppsspp_memstick_inserted",
"Memory Stick inserted",
NULL,
"Some games require ejecting/inserting the Memory Stick.",
NULL,
"system",
BOOL_OPTIONS,
"enabled"
},
{
"ppsspp_internal_resolution",
"Internal Resolution (Restart)",