mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
System.cpp: Move some Emu.Stop() code to a more strategic placement
This commit is contained in:
parent
e7b1fc6696
commit
4a4f318e24
1 changed files with 4 additions and 4 deletions
|
@ -1510,6 +1510,8 @@ void Emulator::Stop(bool restart)
|
|||
return;
|
||||
}
|
||||
|
||||
sys_log.notice("Stopping emulator...");
|
||||
|
||||
named_thread stop_watchdog("Stop Watchdog", [&]()
|
||||
{
|
||||
for (uint i = 0; thread_ctrl::state() != thread_state::aborting;)
|
||||
|
@ -1532,10 +1534,6 @@ void Emulator::Stop(bool restart)
|
|||
}
|
||||
});
|
||||
|
||||
sys_log.notice("Stopping emulator...");
|
||||
|
||||
GetCallbacks().on_stop();
|
||||
|
||||
if (auto rsx = g_fxo->try_get<rsx::thread>())
|
||||
{
|
||||
// TODO: notify?
|
||||
|
@ -1558,6 +1556,8 @@ void Emulator::Stop(bool restart)
|
|||
}
|
||||
}
|
||||
|
||||
GetCallbacks().on_stop();
|
||||
|
||||
// Join threads
|
||||
for (const auto& type : fxo_t::view_typelist())
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue