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

View file

@ -680,7 +680,8 @@ void Achievements::FrameUpdate()
#ifdef WITH_RAINTEGRATION #ifdef WITH_RAINTEGRATION
if (IsUsingRAIntegration()) if (IsUsingRAIntegration())
{ {
RA_DoAchievementsFrame(); if (!System::IsPaused())
RA_DoAchievementsFrame();
return; return;
} }
#endif #endif
@ -690,7 +691,8 @@ void Achievements::FrameUpdate()
if (HasActiveGame()) if (HasActiveGame())
{ {
std::unique_lock lock(s_achievements_mutex); 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(); UpdateRichPresence();
if (!IsTestModeActive()) if (!IsTestModeActive())