mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 22:35:39 +00:00
Achievements: Don't call frame update when paused
But we still want to poll for requests.
This commit is contained in:
parent
165b277421
commit
39e62ae948
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue