Explorar el Código

Qt: Shutdown emulation session only if EmuThread exists.

bunnei hace 11 años
padre
commit
c3bd797917
Se han modificado 1 ficheros con 3 adiciones y 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();