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,6 +680,7 @@ void Achievements::FrameUpdate()
#ifdef WITH_RAINTEGRATION
if (IsUsingRAIntegration())
{
if (!System::IsPaused())
RA_DoAchievementsFrame();
return;
}
@ -690,6 +691,7 @@ void Achievements::FrameUpdate()
if (HasActiveGame())
{
std::unique_lock lock(s_achievements_mutex);
if (!System::IsPaused())
rc_runtime_do_frame(&s_rcheevos_runtime, &CheevosEventHandler, &PeekMemory, nullptr, nullptr);
UpdateRichPresence();