Skip to content

Commit

Permalink
Achievements: Don't call frame update when paused
Browse files Browse the repository at this point in the history
But we still want to poll for requests.
  • Loading branch information
stenzek committed Aug 12, 2023
1 parent 165b277 commit 39e62ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/frontend-common/achievements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,8 @@ void Achievements::FrameUpdate()
#ifdef WITH_RAINTEGRATION
if (IsUsingRAIntegration())
{
RA_DoAchievementsFrame();
if (!System::IsPaused())
RA_DoAchievementsFrame();
return;
}
#endif
Expand All @@ -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())
Expand Down

0 comments on commit 39e62ae

Please sign in to comment.