aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/debugger/wait_tree.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-03-12 16:48:43 -0400
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 11:35:48 -0400
commitb121009e0362a7f8539737324030c59fcef3e2c5 (patch)
treef2508e39a02966cdd4d9acda1e14ed93cdc150cd /src/yuzu/debugger/wait_tree.cpp
parentcb974be3ce3de687f6c4f160ed5183f0de0958f5 (diff)
General: Fix microprofile on dynarmic/svc, fix wait tree showing which threads were running.
Diffstat (limited to 'src/yuzu/debugger/wait_tree.cpp')
-rw-r--r--src/yuzu/debugger/wait_tree.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/yuzu/debugger/wait_tree.cpp b/src/yuzu/debugger/wait_tree.cpp
index ab7b18abec..fa091f4573 100644
--- a/src/yuzu/debugger/wait_tree.cpp
+++ b/src/yuzu/debugger/wait_tree.cpp
@@ -209,7 +209,11 @@ QString WaitTreeThread::GetText() const {
break;
case Kernel::ThreadStatus::Ready:
if (!thread.IsPaused()) {
- status = tr("ready");
+ if (thread.WasRunning()) {
+ status = tr("running");
+ } else {
+ status = tr("ready");
+ }
} else {
status = tr("paused");
}
@@ -261,7 +265,11 @@ QColor WaitTreeThread::GetColor() const {
return QColor(Qt::GlobalColor::darkGreen);
case Kernel::ThreadStatus::Ready:
if (!thread.IsPaused()) {
- return QColor(Qt::GlobalColor::darkBlue);
+ if (thread.WasRunning()) {
+ return QColor(Qt::GlobalColor::darkGreen);
+ } else {
+ return QColor(Qt::GlobalColor::darkBlue);
+ }
} else {
return QColor(Qt::GlobalColor::lightGray);
}