Core: Resume plugin if suspended for configure

SysExecEvent_SaveSinglePlugin would close the plugin, but not reopen it
This commit is contained in:
TheLastRar 2020-12-10 21:54:49 +00:00 committed by refractionpcsx2
parent aed639bb20
commit 0192c538ee
1 changed files with 5 additions and 0 deletions

View File

@ -554,6 +554,8 @@ void SysExecEvent_SaveSinglePlugin::InvokeEvent()
GetCorePlugins().Freeze( m_pid, save );
}
bool wasOpen = GetCorePlugins().IsOpen(m_pid);
GetCorePlugins().Close( m_pid );
_post_and_wait( paused_core );
@ -563,6 +565,9 @@ void SysExecEvent_SaveSinglePlugin::InvokeEvent()
memLoadingState load( plugstore.get() );
GetCorePlugins().Freeze( m_pid, load );
}
if (wasOpen)
GetCorePlugins().Open(m_pid);
}
s_DisableGsWindow = false;