From 39e62ae948d7b123ec9a60e7cea71243b030e85a Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 12 Aug 2023 14:45:51 +1000 Subject: [PATCH] Achievements: Don't call frame update when paused But we still want to poll for requests. --- src/frontend-common/achievements.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontend-common/achievements.cpp b/src/frontend-common/achievements.cpp index 5f61aed0b..5797e2366 100644 --- a/src/frontend-common/achievements.cpp +++ b/src/frontend-common/achievements.cpp @@ -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())