ソースを参照

Qt: Shutdown emulation session only if EmuThread exists.

bunnei 11 年 前
コミット
c3bd797917
1 ファイル変更3 行追加1 行削除
  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();