Skip to content

Commit

Permalink
Merge pull request #11970 from itstake/master
Browse files Browse the repository at this point in the history
Added IO Timing Method option for RetroArch PPSSPP Core.
  • Loading branch information
hrydgard committed Apr 20, 2019
2 parents 8d4ab57 + f7aed9a commit 091c475
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libretro/libretro.cpp
Expand Up @@ -187,6 +187,7 @@ static RetroOption<bool> ppsspp_separate_io_thread("ppsspp_separate_io_thread",
static RetroOption<bool> ppsspp_unsafe_func_replacements("ppsspp_unsafe_func_replacements", "Unsafe FuncReplacements", true);
static RetroOption<bool> ppsspp_sound_speedhack("ppsspp_sound_speedhack", "Sound Speedhack", false);
static RetroOption<bool> ppsspp_cheats("ppsspp_cheats", "Internal Cheats Support", false);
static RetroOption<IOTimingMethods> 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<retro_variable> vars;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 091c475

Please sign in to comment.