yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Yuzu/Debuggers: Correct Wait Tree for Paused threads.

This commit is contained in:
Fernando Sahmkow 2020-03-07 13:07:04 -04:00
parent 83c7ba1ef7
commit 38c6c497f6
1 changed files with 10 additions and 2 deletions

View File

@ -208,7 +208,11 @@ QString WaitTreeThread::GetText() const {
status = tr("running");
break;
case Kernel::ThreadStatus::Ready:
status = tr("ready");
if (!thread.IsPaused()) {
status = tr("ready");
} else {
status = tr("paused");
}
break;
case Kernel::ThreadStatus::Paused:
status = tr("paused");
@ -256,7 +260,11 @@ QColor WaitTreeThread::GetColor() const {
case Kernel::ThreadStatus::Running:
return QColor(Qt::GlobalColor::darkGreen);
case Kernel::ThreadStatus::Ready:
return QColor(Qt::GlobalColor::darkBlue);
if (!thread.IsPaused()) {
return QColor(Qt::GlobalColor::darkBlue);
} else {
return QColor(Qt::GlobalColor::lightGray);
}
case Kernel::ThreadStatus::Paused:
return QColor(Qt::GlobalColor::lightGray);
case Kernel::ThreadStatus::WaitHLEEvent: