summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-03-07 13:07:04 -0400
committerGravatar Fernando Sahmkow2020-06-27 11:35:34 -0400
commit38c6c497f6895cff2f073802e77834aa3347f954 (patch)
tree21b91ce083853fdba296db37f3738661bc9e9d00 /src
parentSVC: Correct SetThreadActivity. (diff)
downloadyuzu-38c6c497f6895cff2f073802e77834aa3347f954.tar.gz
yuzu-38c6c497f6895cff2f073802e77834aa3347f954.tar.xz
yuzu-38c6c497f6895cff2f073802e77834aa3347f954.zip
Yuzu/Debuggers: Correct Wait Tree for Paused threads.
Diffstat (limited to 'src')
-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 765908c5a..ab7b18abe 100644
--- a/src/yuzu/debugger/wait_tree.cpp
+++ b/src/yuzu/debugger/wait_tree.cpp
@@ -208,7 +208,11 @@ QString WaitTreeThread::GetText() const {
208 status = tr("running"); 208 status = tr("running");
209 break; 209 break;
210 case Kernel::ThreadStatus::Ready: 210 case Kernel::ThreadStatus::Ready:
211 status = tr("ready"); 211 if (!thread.IsPaused()) {
212 status = tr("ready");
213 } else {
214 status = tr("paused");
215 }
212 break; 216 break;
213 case Kernel::ThreadStatus::Paused: 217 case Kernel::ThreadStatus::Paused:
214 status = tr("paused"); 218 status = tr("paused");
@@ -256,7 +260,11 @@ QColor WaitTreeThread::GetColor() const {
256 case Kernel::ThreadStatus::Running: 260 case Kernel::ThreadStatus::Running:
257 return QColor(Qt::GlobalColor::darkGreen); 261 return QColor(Qt::GlobalColor::darkGreen);
258 case Kernel::ThreadStatus::Ready: 262 case Kernel::ThreadStatus::Ready:
259 return QColor(Qt::GlobalColor::darkBlue); 263 if (!thread.IsPaused()) {
264 return QColor(Qt::GlobalColor::darkBlue);
265 } else {
266 return QColor(Qt::GlobalColor::lightGray);
267 }
260 case Kernel::ThreadStatus::Paused: 268 case Kernel::ThreadStatus::Paused:
261 return QColor(Qt::GlobalColor::lightGray); 269 return QColor(Qt::GlobalColor::lightGray);
262 case Kernel::ThreadStatus::WaitHLEEvent: 270 case Kernel::ThreadStatus::WaitHLEEvent: