mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
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:
parent
d70ab11477
commit
6cf50f8f6c
@ -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 = {};
|
||||
|
@ -2227,6 +2227,7 @@ void main_window::closeEvent(QCloseEvent* closeEvent)
|
||||
}
|
||||
|
||||
// Cleanly stop and quit the emulator.
|
||||
Emu.Stop();
|
||||
Emu.Quit(true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user