From 053ad04d3f50ec9bca40e48487e4a0cda9b320f4 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 18 Dec 2022 23:09:44 -0500 Subject: qt: continue event loop during game close --- src/yuzu/main.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/yuzu/main.h') diff --git a/src/yuzu/main.h b/src/yuzu/main.h index 5b84c7a00..ce1de17ef 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; -- cgit v1.2.3 From 646656412f71a554601173cac7a1d57af9a5232f Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 23 Dec 2022 20:57:36 -0500 Subject: qt: fix uninitialized memory usage --- src/yuzu/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/yuzu/main.h') diff --git a/src/yuzu/main.h b/src/yuzu/main.h index ce1de17ef..95220b063 100644 --- a/src/yuzu/main.h +++ b/src/yuzu/main.h @@ -390,7 +390,7 @@ private: GameList* game_list; LoadingScreen* loading_screen; QTimer shutdown_timer; - OverlayDialog* shutdown_dialog; + OverlayDialog* shutdown_dialog{}; GameListPlaceholder* game_list_placeholder; -- cgit v1.2.3