summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2020-03-28 02:31:35 +0100
committerFearlessTobi <thm.frey@gmail.com>2020-03-28 02:31:35 +0100
commit8ba06aa4e1da6dc7b4fa761dba28165d8a634f84 (patch)
tree6825de2a1c89b2b7be588c21ddbc1262cef568f0 /src
parentMerge pull request #3565 from ReinUsesLisp/image-format (diff)
downloadyuzu-8ba06aa4e1da6dc7b4fa761dba28165d8a634f84.tar
yuzu-8ba06aa4e1da6dc7b4fa761dba28165d8a634f84.tar.gz
yuzu-8ba06aa4e1da6dc7b4fa761dba28165d8a634f84.tar.bz2
yuzu-8ba06aa4e1da6dc7b4fa761dba28165d8a634f84.tar.lz
yuzu-8ba06aa4e1da6dc7b4fa761dba28165d8a634f84.tar.xz
yuzu-8ba06aa4e1da6dc7b4fa761dba28165d8a634f84.tar.zst
yuzu-8ba06aa4e1da6dc7b4fa761dba28165d8a634f84.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 4769a612e..415a64b1e 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1034,6 +1034,14 @@ void GMainWindow::BootGame(const QString& filename) {
}
void GMainWindow::ShutdownGame() {
+ if (!emulation_running) {
+ return;
+ }
+
+ if (ui.action_Fullscreen->isChecked()) {
+ HideFullscreen();
+ }
+
AllowOSSleep();
discord_rpc->Pause();