mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
Logs: output always message level to debuggers
This commit is contained in:
parent
965ec8ec81
commit
622894a7e3
1 changed files with 6 additions and 3 deletions
|
@ -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,8 +289,11 @@ struct fatal_error_listener final : logs::listener
|
||||||
OutputDebugStringA(_msg.c_str());
|
OutputDebugStringA(_msg.c_str());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// Pause emulation if fatal error encountered
|
if (msg == logs::level::fatal)
|
||||||
Emu.Pause(true);
|
{
|
||||||
|
// Pause emulation if fatal error encountered
|
||||||
|
Emu.Pause(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue