diff --git a/libretro/libretro.cpp b/libretro/libretro.cpp index 4b528588ce..4b6da2b3ed 100644 --- a/libretro/libretro.cpp +++ b/libretro/libretro.cpp @@ -187,6 +187,7 @@ static RetroOption ppsspp_separate_io_thread("ppsspp_separate_io_thread", static RetroOption ppsspp_unsafe_func_replacements("ppsspp_unsafe_func_replacements", "Unsafe FuncReplacements", true); static RetroOption ppsspp_sound_speedhack("ppsspp_sound_speedhack", "Sound Speedhack", false); static RetroOption ppsspp_cheats("ppsspp_cheats", "Internal Cheats Support", false); +static RetroOption ppsspp_io_timing_method("ppsspp_io_timing_method", "IO Timing Method", { { "Fast", IOTimingMethods::IOTIMING_FAST }, { "Host", IOTimingMethods::IOTIMING_HOST }, { "Simulate UMD delays", IOTimingMethods::IOTIMING_REALISTIC } }); void retro_set_environment(retro_environment_t cb) { std::vector vars; @@ -214,6 +215,7 @@ void retro_set_environment(retro_environment_t cb) { vars.push_back(ppsspp_unsafe_func_replacements.GetOptions()); vars.push_back(ppsspp_sound_speedhack.GetOptions()); vars.push_back(ppsspp_cheats.GetOptions()); + vars.push_back(ppsspp_io_timing_method.GetOptions()); vars.push_back({}); environ_cb = cb; @@ -281,6 +283,7 @@ static void check_variables(CoreParameter &coreParam) { ppsspp_locked_cpu_speed.Update(&g_Config.iLockedCPUSpeed); ppsspp_rendering_mode.Update(&g_Config.iRenderingMode); ppsspp_cpu_core.Update((CPUCore *)&g_Config.iCpuCore); + ppsspp_io_timing_method.Update((IOTimingMethods *)&g_Config.iIOTimingMethod); ppsspp_language.Update(&g_Config.iLanguage); if (g_Config.iLanguage < 0) {