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(); }