Libretro: Add GBP rumble option
Vicki Pfau vi@endrift.com
Wed, 14 Oct 2020 21:22:49 -0700
2 files changed,
19 insertions(+),
0 deletions(-)
M
src/platform/libretro/libretro.c
→
src/platform/libretro/libretro.c
@@ -142,6 +142,14 @@ mCoreConfigSetDefaultValue(&core->config, "idleOptimization", "detect");
} } +#ifdef M_CORE_GBA + var.key = "mgba_force_gbp"; + var.value = 0; + if (environCallback(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) { + mCoreConfigSetDefaultIntValue(&core->config, "gba.forceGbp", strcmp(var.value, "ON") == 0); + } +#endif + mCoreConfigLoadDefaults(&core->config, &opts); mCoreLoadConfig(core); }
M
src/platform/libretro/libretro_core_options.h
→
src/platform/libretro/libretro_core_options.h
@@ -174,6 +174,17 @@ },
"OFF" }, #endif + { + "mgba_force_gbp", + "Enable Game Boy Player Rumble (requires restart)", + "Enabling this will allow compatible games with the Game Boy Player boot logo to make the controller rumble. Due to how Nintendo decided this feature should work, it may cause glitches such as flickering or lag in some of these games.", + { + { "OFF", NULL }, + { "ON", NULL }, + { NULL, NULL }, + }, + "OFF" + }, { NULL, NULL, NULL, {{0}}, NULL }, };