mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-04 22:25:01 -06:00
Dont append main thread's ID on fatal error dialog (#13021)
This commit is contained in:
parent
8af4a94864
commit
5fec8666e3
@ -100,12 +100,12 @@ LOG_CHANNEL(q_debug, "QDEBUG");
|
|||||||
std::string buf;
|
std::string buf;
|
||||||
|
|
||||||
// Check if thread id is in string
|
// Check if thread id is in string
|
||||||
if (_text.find("\nThread id = "sv) == umax)
|
if (_text.find("\nThread id = "sv) == umax && !thread_ctrl::is_main())
|
||||||
{
|
{
|
||||||
// Copy only when needed
|
// Copy only when needed
|
||||||
buf = std::string(_text);
|
buf = std::string(_text);
|
||||||
|
|
||||||
// Always print thread id
|
// Append thread id if it isn't already, except on main thread
|
||||||
fmt::append(buf, "\n\nThread id = %u.", thread_ctrl::get_tid());
|
fmt::append(buf, "\n\nThread id = %u.", thread_ctrl::get_tid());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user