Second attempt to fix hanging RPCS3 process

Now fix exit logic a bit.
Remove Init() call from Stop().
Remove Stop() call from Quit().
This commit is contained in:
Nekotekina 2020-11-22 12:45:19 +03:00
parent d70ab11477
commit 6cf50f8f6c
2 changed files with 1 additions and 2 deletions

View File

@ -1963,13 +1963,11 @@ void Emulator::Stop(bool restart)
}
m_force_boot = false;
Init();
}
bool Emulator::Quit(bool force_quit)
{
m_force_boot = false;
Emu.Stop();
// Deinitialize object manager to prevent any hanging objects at program exit
*g_fxo = {};

View File

@ -2227,6 +2227,7 @@ void main_window::closeEvent(QCloseEvent* closeEvent)
}
// Cleanly stop and quit the emulator.
Emu.Stop();
Emu.Quit(true);
}