mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
libretro: Fix the combination of Force Real Clock Sync and fastforward
This commit is contained in:
1 parent
611ac40d1e
commit
a630790d69
1 file changed
+9
-3
@@ -473,14 +473,18 @@ static std::string map_psp_language_to_i18n_locale(int val)
|
||||
}
|
||||
}
|
||||
|
||||
static void check_variables(CoreParameter &coreParam)
|
||||
{
|
||||
static void check_dynamic_variables(CoreParameter &coreParam) {
|
||||
if (g_Config.bForceLagSync)
|
||||
{
|
||||
bool isFastForwarding;
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_FASTFORWARDING, &isFastForwarding))
|
||||
coreParam.fastForward = isFastForwarding;
|
||||
coreParam.fastForward = isFastForwarding;
|
||||
}
|
||||
}
|
||||
|
||||
static void check_variables(CoreParameter &coreParam)
|
||||
{
|
||||
check_dynamic_variables(coreParam);
|
||||
|
||||
struct retro_variable var = {0};
|
||||
std::string sTextureShaderName_prev;
|
||||
@@ -1680,6 +1684,8 @@ void retro_run(void)
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated)
|
||||
&& updated)
|
||||
check_variables(PSP_CoreParameter());
|
||||
else
|
||||
check_dynamic_variables(PSP_CoreParameter());
|
||||
|
||||
retro_input();
|
||||
|
||||
|
||||
Reference in new issue
Block a user