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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user