mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
[libretro] Expose "Memory Stick inserted" option
This commit is contained in:
parent
33c0052c70
commit
d023c9887b
2 changed files with 18 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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)",
|
||||
|
|
Loading…
Add table
Reference in a new issue