CommonHost: Notify RAIntegration when we pause
This commit is contained in:
parent
58a5985f1a
commit
39d1e899eb
|
@ -255,6 +255,10 @@ void CommonHost::OnSystemPaused()
|
||||||
|
|
||||||
InputManager::PauseVibration();
|
InputManager::PauseVibration();
|
||||||
|
|
||||||
|
#ifdef WITH_CHEEVOS
|
||||||
|
Achievements::OnSystemPaused(true);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (g_settings.inhibit_screensaver)
|
if (g_settings.inhibit_screensaver)
|
||||||
FrontendCommon::ResumeScreensaver();
|
FrontendCommon::ResumeScreensaver();
|
||||||
}
|
}
|
||||||
|
@ -263,6 +267,10 @@ void CommonHost::OnSystemResumed()
|
||||||
{
|
{
|
||||||
FullscreenUI::OnSystemResumed();
|
FullscreenUI::OnSystemResumed();
|
||||||
|
|
||||||
|
#ifdef WITH_CHEEVOS
|
||||||
|
Achievements::OnSystemPaused(false);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (g_settings.inhibit_screensaver)
|
if (g_settings.inhibit_screensaver)
|
||||||
FrontendCommon::SuspendScreensaver();
|
FrontendCommon::SuspendScreensaver();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue