mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
Attempt to fix Emu.Quit()
There was some kind of "initialization order fiasco" of g_fxo. Not only should it be used after main, but also destroyed before exit.
This commit is contained in:
parent
71f1021648
commit
e89a568765
2 changed files with 4 additions and 0 deletions
|
@ -1971,6 +1971,9 @@ 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 = {};
|
||||
|
||||
return GetCallbacks().exit(force_quit);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue