libretro: fix fast forwarding

This commit is contained in:
Eric Warmenhoven 2023-07-11 00:43:38 -04:00
parent f446312cb6
commit b393d54dc7

View File

@ -425,6 +425,10 @@ 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;
bool updated = false;
if ( coreState != CoreState::CORE_POWERUP
@ -1025,10 +1029,6 @@ static void check_variables(CoreParameter &coreParam)
environ_cb(RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO, &avInfo);
}
bool isFastForwarding;
if (environ_cb(RETRO_ENVIRONMENT_GET_FASTFORWARDING, &isFastForwarding))
coreParam.fastForward = isFastForwarding;
set_variable_visibility();
}