From a98174be856dfdc39193fab1e1f95eee7d545228 Mon Sep 17 00:00:00 2001 From: Eladash Date: Sun, 9 Jul 2023 10:22:50 +0300 Subject: [PATCH] Logs re-enable on Emu.Kill() fixup --- rpcs3/Emu/System.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 1f66cf26dd..f147f4f1b6 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -2505,9 +2505,6 @@ extern bool try_lock_spu_threads_in_a_state_compatible_with_savestates(bool reve void Emulator::Kill(bool allow_autoexit, bool savestate) { - // Enable logging - rpcs3::utils::configure_logs(true); - if (!IsStopped() && savestate && !try_lock_spu_threads_in_a_state_compatible_with_savestates()) { sys_log.error("Failed to savestate: failed to lock SPU threads execution."); @@ -2561,9 +2558,15 @@ void Emulator::Kill(bool allow_autoexit, bool savestate) m_config_mode = cfg_mode::custom; read_used_savestate_versions(); m_savestate_extension_flags1 = {}; + + // Enable logging + rpcs3::utils::configure_logs(true); return; } + // Enable logging + rpcs3::utils::configure_logs(true); + sys_log.notice("Stopping emulator..."); {