Achievements: Don't call frame update when paused

But we still want to poll for requests.
This commit is contained in:
Stenzek 2023-08-12 14:45:51 +10:00
parent 165b277421
commit 39e62ae948
1 changed files with 4 additions and 2 deletions

View File

@ -680,7 +680,8 @@ void Achievements::FrameUpdate()
#ifdef WITH_RAINTEGRATION
if (IsUsingRAIntegration())
{
RA_DoAchievementsFrame();
if (!System::IsPaused())
RA_DoAchievementsFrame();
return;
}
#endif
@ -690,7 +691,8 @@ void Achievements::FrameUpdate()
if (HasActiveGame())
{
std::unique_lock lock(s_achievements_mutex);
rc_runtime_do_frame(&s_rcheevos_runtime, &CheevosEventHandler, &PeekMemory, nullptr, nullptr);
if (!System::IsPaused())
rc_runtime_do_frame(&s_rcheevos_runtime, &CheevosEventHandler, &PeekMemory, nullptr, nullptr);
UpdateRichPresence();
if (!IsTestModeActive())