Logs: output always message level to debuggers

This commit is contained in:
Eladash 2024-04-10 11:00:09 +03:00 committed by Elad Ashkenazi
parent 965ec8ec81
commit 622894a7e3

View file

@ -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 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: "; std::string _msg = "RPCS3: ";
@ -289,10 +289,13 @@ struct fatal_error_listener final : logs::listener
OutputDebugStringA(_msg.c_str()); OutputDebugStringA(_msg.c_str());
} }
#endif #endif
if (msg == logs::level::fatal)
{
// Pause emulation if fatal error encountered // Pause emulation if fatal error encountered
Emu.Pause(true); Emu.Pause(true);
} }
} }
}
}; };
// Arguments that force a headless application (need to be checked in create_application) // Arguments that force a headless application (need to be checked in create_application)