core_timing: Lock CoreTiming event queue while deserializing

To handle those classic asymmetric constructor/destructor side effects
This commit is contained in:
zhupengfei 2021-02-08 11:24:05 +08:00
parent b2531310b4
commit 996ca25a2e
No known key found for this signature in database
GPG key ID: DD129E108BD09378
3 changed files with 23 additions and 0 deletions

View file

@ -629,6 +629,7 @@ void System::serialize(Archive& ar, const unsigned int file_version) {
// This needs to be set from somewhere - might as well be here!
if (Archive::is_loading::value) {
timing->UnlockEventQueue();
Service::GSP::SetGlobalModule(*this);
memory->SetDSP(*dsp_core);
cheat_engine->Connect();