Fix Emulator::argv state after failed PS3 exitspawn

This commit is contained in:
Eladash 2022-05-04 22:12:22 +03:00 committed by Ivan
parent 3dda72e47f
commit 7a3cbf1876
1 changed files with 9 additions and 0 deletions

View File

@ -1771,6 +1771,15 @@ void Emulator::Kill(bool allow_autoexit)
{ {
if (m_state.exchange(system_state::stopped) == system_state::stopped) if (m_state.exchange(system_state::stopped) == system_state::stopped)
{ {
// Ensure clean state
argv.clear();
envp.clear();
data.clear();
disc.clear();
klic.clear();
hdd1.clear();
m_config_path.clear();
m_config_mode = cfg_mode::custom;
return; return;
} }