From f038573d4885b490b22b5a1722df19dbb24bf960 Mon Sep 17 00:00:00 2001 From: ITSTAKE Date: Sat, 13 Apr 2019 19:31:10 +0900 Subject: [PATCH 1/3] Added IO Timing Method option. --- libretro/libretro.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libretro/libretro.cpp b/libretro/libretro.cpp index 3c656fe55b..1dce6fdb5e 100644 --- a/libretro/libretro.cpp +++ b/libretro/libretro.cpp @@ -188,6 +188,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 }, { "Realistic", IOTimingMethods:IOTIMING_REALISTIC } }); void retro_set_environment(retro_environment_t cb) { std::vector vars; @@ -216,6 +217,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; @@ -284,6 +286,7 @@ static void check_variables(CoreParameter &coreParam) { ppsspp_rendering_mode.Update(&g_Config.iRenderingMode); ppsspp_force_max_fps.Update(&g_Config.iForceMaxEmulatedFPS); ppsspp_cpu_core.Update((CPUCore *)&g_Config.iCpuCore); + ppsspp_io_timing_method.Update((IOTimingMethod *)&g_Config.iIOTimingMethod); ppsspp_language.Update(&g_Config.iLanguage); if (g_Config.iLanguage < 0) { From 5ee7d73be837a7b4fafffb944deefbe3495e8a49 Mon Sep 17 00:00:00 2001 From: ITSTAKE Date: Mon, 15 Apr 2019 14:07:19 +0000 Subject: [PATCH 2/3] Fix typo --- libretro/libretro.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro/libretro.cpp b/libretro/libretro.cpp index 1dce6fdb5e..efed32cceb 100644 --- a/libretro/libretro.cpp +++ b/libretro/libretro.cpp @@ -188,7 +188,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 }, { "Realistic", IOTimingMethods:IOTIMING_REALISTIC } }); +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; @@ -286,7 +286,7 @@ static void check_variables(CoreParameter &coreParam) { ppsspp_rendering_mode.Update(&g_Config.iRenderingMode); ppsspp_force_max_fps.Update(&g_Config.iForceMaxEmulatedFPS); ppsspp_cpu_core.Update((CPUCore *)&g_Config.iCpuCore); - ppsspp_io_timing_method.Update((IOTimingMethod *)&g_Config.iIOTimingMethod); + ppsspp_io_timing_method.Update((IOTimingMethods *)&g_Config.iIOTimingMethod); ppsspp_language.Update(&g_Config.iLanguage); if (g_Config.iLanguage < 0) { From f7aed9a754b423d4cda29b7e188ae867fc4a8421 Mon Sep 17 00:00:00 2001 From: ITSTAKE Date: Sat, 20 Apr 2019 18:02:09 +0900 Subject: [PATCH 3/3] Fix typo again --- libretro/libretro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro/libretro.cpp b/libretro/libretro.cpp index efed32cceb..33c7091460 100644 --- a/libretro/libretro.cpp +++ b/libretro/libretro.cpp @@ -188,7 +188,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 } }); +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;