From 4c1b50a3948ec4c896b8fa4d81f9f8b8474941e9 Mon Sep 17 00:00:00 2001 From: sonninnos Date: Wed, 5 Jun 2024 05:20:57 +0300 Subject: [PATCH] libretro: Do internal fastforward toggling only with ForceLagSync --- libretro/libretro.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libretro/libretro.cpp b/libretro/libretro.cpp index b8ac23c34e..f91b3f0f19 100644 --- a/libretro/libretro.cpp +++ b/libretro/libretro.cpp @@ -487,9 +487,12 @@ static std::string map_psp_language_to_i18n_locale(int val) static void check_variables(CoreParameter &coreParam) { - bool isFastForwarding; - if (environ_cb(RETRO_ENVIRONMENT_GET_FASTFORWARDING, &isFastForwarding)) - coreParam.fastForward = isFastForwarding; + if (g_Config.bForceLagSync) + { + bool isFastForwarding; + if (environ_cb(RETRO_ENVIRONMENT_GET_FASTFORWARDING, &isFastForwarding)) + coreParam.fastForward = isFastForwarding; + } bool updated = false;