From 7a3cbf1876d0f583b164f469bf11c42de1ebdf99 Mon Sep 17 00:00:00 2001 From: Eladash Date: Wed, 4 May 2022 22:12:22 +0300 Subject: [PATCH] Fix Emulator::argv state after failed PS3 exitspawn --- rpcs3/Emu/System.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 7abf74bef7..7eac839b05 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -1771,6 +1771,15 @@ void Emulator::Kill(bool allow_autoexit) { 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; }