Explorar o código

Qt: Shutdown emulation session only if EmuThread exists.

bunnei %!s(int64=11) %!d(string=hai) anos
pai
achega
c3bd797917
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/citra_qt/main.cpp

+ 3 - 1
src/citra_qt/main.cpp

@@ -337,7 +337,9 @@ void GMainWindow::closeEvent(QCloseEvent* event)
     settings.setValue("firstStart", false);
     SaveHotkeys(settings);
 
-    ShutdownGame();
+    // Shutdown session if the emu thread is active...
+    if (emu_thread != nullptr)
+        ShutdownGame();
 
     render_window->close();