Savestates/SPU: Complete fix for saving sys_spu_thread_receive_event

This commit is contained in:
Eladash 2022-07-11 10:53:29 +03:00 committed by Ivan
parent ab27ee4cf4
commit cdd6840826
5 changed files with 84 additions and 33 deletions

View file

@ -4790,6 +4790,12 @@ bool spu_thread::stop_and_signal(u32 code)
return false;
}
if (Emu.IsStarting())
{
// Deregister lv2_obj::g_to_sleep entry (savestates related)
lv2_obj::sleep(*this);
}
if (group->run_state >= SPU_THREAD_GROUP_STATUS_WAITING && group->run_state <= SPU_THREAD_GROUP_STATUS_WAITING_AND_SUSPENDED)
{
// Try again