Browse Source

Qt: Shutdown emulation session only if EmuThread exists.

bunnei 11 năm trước cách đây
mục cha
commit
c3bd797917
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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();