summaryrefslogtreecommitdiff
path: root/src/yuzu/main.h
diff options
context:
space:
mode:
authorsnek <me@gus.host>2022-07-27 16:46:03 -0700
committerGitHub <noreply@github.com>2022-07-27 19:46:03 -0400
commitb7642cff361176161e848b004143da4777d0971d (patch)
tree04bfe8b7914f7f71cb67af0d7be078a3ca91db44 /src/yuzu/main.h
parentea861cc1c43e3c4079e80b6cbf3e81f992996574 (diff)
implement pause on system suspend (#8585)
Diffstat (limited to 'src/yuzu/main.h')
-rw-r--r--src/yuzu/main.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/yuzu/main.h b/src/yuzu/main.h
index 509bb91df..23b67a14e 100644
--- a/src/yuzu/main.h
+++ b/src/yuzu/main.h
@@ -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;