From 622894a7e3449995dae2c91e2bdfbdf4d71c2d04 Mon Sep 17 00:00:00 2001 From: Eladash <18193363+elad335@users.noreply.github.com> Date: Wed, 10 Apr 2024 11:00:09 +0300 Subject: [PATCH] Logs: output always message level to debuggers --- rpcs3/main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rpcs3/main.cpp b/rpcs3/main.cpp index c4945d5e8c..6fad731ece 100644 --- a/rpcs3/main.cpp +++ b/rpcs3/main.cpp @@ -255,7 +255,7 @@ struct fatal_error_listener final : logs::listener void log(u64 /*stamp*/, const logs::message& msg, const std::string& prefix, const std::string& text) override { - if (msg == logs::level::fatal) + if (msg <= logs::level::fatal) { std::string _msg = "RPCS3: "; @@ -289,8 +289,11 @@ struct fatal_error_listener final : logs::listener OutputDebugStringA(_msg.c_str()); } #endif - // Pause emulation if fatal error encountered - Emu.Pause(true); + if (msg == logs::level::fatal) + { + // Pause emulation if fatal error encountered + Emu.Pause(true); + } } } };