mirror of https://github.com/PCSX2/pcsx2.git
Core: Resume plugin if suspended for configure
SysExecEvent_SaveSinglePlugin would close the plugin, but not reopen it
This commit is contained in:
parent
aed639bb20
commit
0192c538ee
|
@ -554,6 +554,8 @@ void SysExecEvent_SaveSinglePlugin::InvokeEvent()
|
||||||
GetCorePlugins().Freeze( m_pid, save );
|
GetCorePlugins().Freeze( m_pid, save );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wasOpen = GetCorePlugins().IsOpen(m_pid);
|
||||||
|
|
||||||
GetCorePlugins().Close( m_pid );
|
GetCorePlugins().Close( m_pid );
|
||||||
_post_and_wait( paused_core );
|
_post_and_wait( paused_core );
|
||||||
|
|
||||||
|
@ -563,6 +565,9 @@ void SysExecEvent_SaveSinglePlugin::InvokeEvent()
|
||||||
memLoadingState load( plugstore.get() );
|
memLoadingState load( plugstore.get() );
|
||||||
GetCorePlugins().Freeze( m_pid, load );
|
GetCorePlugins().Freeze( m_pid, load );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (wasOpen)
|
||||||
|
GetCorePlugins().Open(m_pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
s_DisableGsWindow = false;
|
s_DisableGsWindow = false;
|
||||||
|
|
Loading…
Reference in New Issue