implement pause on system suspend (#8585)

This commit is contained in:
snek
2022-07-27 16:46:03 -07:00
committed by GitHub
parent ea861cc1c4
commit b7642cff36
2 changed files with 43 additions and 1 deletions

View File

@ -204,7 +204,7 @@ private:
void ConnectMenuEvents();
void UpdateMenuState();
MultiplayerState* multiplayer_state = nullptr;
void SetupPrepareForSleep();
void PreventOSSleep();
void AllowOSSleep();
@ -265,6 +265,7 @@ private slots:
void OnPauseGame();
void OnPauseContinueGame();
void OnStopGame();
void OnPrepareForSleep(bool prepare_sleep);
void OnMenuReportCompatibility();
void OnOpenModsPage();
void OnOpenQuickstartGuide();
@ -355,6 +356,8 @@ private:
std::unique_ptr<DiscordRPC::DiscordInterface> discord_rpc;
std::shared_ptr<InputCommon::InputSubsystem> input_subsystem;
MultiplayerState* multiplayer_state = nullptr;
GRenderWindow* render_window;
GameList* game_list;
LoadingScreen* loading_screen;