From 39d1e899ebb798f4db38467b698e825eada1027d Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 29 Jan 2023 00:56:03 +1000 Subject: [PATCH] CommonHost: Notify RAIntegration when we pause --- src/frontend-common/common_host.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/frontend-common/common_host.cpp b/src/frontend-common/common_host.cpp index ea25396d8..1bcca55de 100644 --- a/src/frontend-common/common_host.cpp +++ b/src/frontend-common/common_host.cpp @@ -255,6 +255,10 @@ void CommonHost::OnSystemPaused() InputManager::PauseVibration(); +#ifdef WITH_CHEEVOS + Achievements::OnSystemPaused(true); +#endif + if (g_settings.inhibit_screensaver) FrontendCommon::ResumeScreensaver(); } @@ -263,6 +267,10 @@ void CommonHost::OnSystemResumed() { FullscreenUI::OnSystemResumed(); +#ifdef WITH_CHEEVOS + Achievements::OnSystemPaused(false); +#endif + if (g_settings.inhibit_screensaver) FrontendCommon::SuspendScreensaver(); }