Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

yuzu: fix the stuck in fullscreen mode bug

FearlessTobi3a72973e13c1
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 4769a612e3..415a64b1eb 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();