From 5fec8666e392f40504aea05d3ea6b6247f79b983 Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi Date: Tue, 6 Dec 2022 23:18:26 +0200 Subject: [PATCH] Dont append main thread's ID on fatal error dialog (#13021) --- rpcs3/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/main.cpp b/rpcs3/main.cpp index a8db72d0fc..5238d79367 100644 --- a/rpcs3/main.cpp +++ b/rpcs3/main.cpp @@ -100,12 +100,12 @@ LOG_CHANNEL(q_debug, "QDEBUG"); std::string buf; // 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 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()); }