General: Fix microprofile on dynarmic/svc, fix wait tree showing which threads were running.

This commit is contained in:
Fernando Sahmkow
2020-03-12 16:48:43 -04:00
parent e6f8bde74b
commit 7020d498c5
11 changed files with 87 additions and 13 deletions

View File

@ -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);
}