mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 10:18:40 +12:00
Cleanup Emu before the update reboot
This commit is contained in:
parent
9da7910fc9
commit
dab53f4e41
3 changed files with 12 additions and 2 deletions
|
@ -1977,12 +1977,17 @@ bool Emulator::Quit(bool force_quit)
|
|||
// The callback is only used if we actually quit RPCS3
|
||||
const auto on_exit = []()
|
||||
{
|
||||
// Deinitialize object manager to prevent any hanging objects at program exit
|
||||
g_fxo->clear();
|
||||
Emu.CleanUp();
|
||||
};
|
||||
return GetCallbacks().try_to_quit(force_quit, on_exit);
|
||||
}
|
||||
|
||||
void Emulator::CleanUp()
|
||||
{
|
||||
// Deinitialize object manager to prevent any hanging objects at program exit
|
||||
g_fxo->clear();
|
||||
}
|
||||
|
||||
std::string Emulator::GetFormattedTitle(double fps) const
|
||||
{
|
||||
rpcs3::title_format_data title_data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue