Skip to content

Commit

Permalink
CommonHost: Notify RAIntegration when we pause
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jan 28, 2023
1 parent c45a354 commit c6a5727
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/frontend-common/common_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ void CommonHost::OnSystemPaused()

InputManager::PauseVibration();

#ifdef WITH_CHEEVOS
Achievements::OnSystemPaused(true);
#endif

if (g_settings.inhibit_screensaver)
FrontendCommon::ResumeScreensaver();
}
Expand All @@ -263,6 +267,10 @@ void CommonHost::OnSystemResumed()
{
FullscreenUI::OnSystemResumed();

#ifdef WITH_CHEEVOS
Achievements::OnSystemPaused(false);
#endif

if (g_settings.inhibit_screensaver)
FrontendCommon::SuspendScreensaver();
}
Expand Down

0 comments on commit c6a5727

Please sign in to comment.