mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-29 10:50:17 +00:00
Qt: Shutdown emulation session only if EmuThread exists.
This commit is contained in:
parent
9d8e1f7a92
commit
c3bd797917
1 changed files with 3 additions and 1 deletions
|
@ -337,6 +337,8 @@ void GMainWindow::closeEvent(QCloseEvent* event)
|
|||
settings.setValue("firstStart", false);
|
||||
SaveHotkeys(settings);
|
||||
|
||||
// Shutdown session if the emu thread is active...
|
||||
if (emu_thread != nullptr)
|
||||
ShutdownGame();
|
||||
|
||||
render_window->close();
|
||||
|
|
Loading…
Reference in a new issue