Logs re-enable on Emu.Kill() fixup

This commit is contained in:
Eladash 2023-07-09 10:22:50 +03:00 committed by Elad Ashkenazi
parent b68cfbf794
commit a98174be85

View File

@ -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...");
{