CommonHost: Notify RAIntegration when we pause

This commit is contained in:
Stenzek 2023-01-29 00:56:03 +10:00
parent 58a5985f1a
commit 39d1e899eb

View file

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