Skip to content

Commit

Permalink
Merge pull request #18603 from bsdf/master
Browse files Browse the repository at this point in the history
[libretro] Expose "Memory Stick inserted" option
  • Loading branch information
hrydgard authored Dec 23, 2023
2 parents 33c0052 + d023c98 commit 7f12b7a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 10 additions & 0 deletions libretro/libretro_core_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down

0 comments on commit 7f12b7a

Please sign in to comment.