diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-23 21:05:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-23 21:05:10 -0500 |
commit | db15142ac98f3fbb23fd7b9e952392915e0ed97a (patch) | |
tree | 47ecd3fe20d6deef3ac79a8defd6b8d9f0d96066 /src/yuzu/main.h | |
parent | fa231645f276c80c34f3b439bd2f60b3d743a789 (diff) | |
parent | 646656412f71a554601173cac7a1d57af9a5232f (diff) |
Merge pull request #9476 from liamwhite/async-shutdown
qt: continue event loop during game close
Diffstat (limited to 'src/yuzu/main.h')
-rw-r--r-- | src/yuzu/main.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/yuzu/main.h b/src/yuzu/main.h index 5b84c7a00..95220b063 100644 --- a/src/yuzu/main.h +++ b/src/yuzu/main.h @@ -29,6 +29,7 @@ class GImageInfo; class GRenderWindow; class LoadingScreen; class MicroProfileDialog; +class OverlayDialog; class ProfilerWidget; class ControllerDialog; class QLabel; @@ -335,6 +336,10 @@ private slots: void OnReinitializeKeys(ReinitializeKeyBehavior behavior); void OnLanguageChanged(const QString& locale); void OnMouseActivity(); + void OnShutdownBegin(); + void OnShutdownBeginDialog(); + void OnEmulationStopped(); + void OnEmulationStopTimeExpired(); private: QString GetGameListErrorRemoving(InstalledEntryType type) const; @@ -384,6 +389,8 @@ private: GRenderWindow* render_window; GameList* game_list; LoadingScreen* loading_screen; + QTimer shutdown_timer; + OverlayDialog* shutdown_dialog{}; GameListPlaceholder* game_list_placeholder; |