summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMonsterDruide1 <5958456@gmail.com>2021-06-18 16:21:45 +0200
committerMonsterDruide1 <5958456@gmail.com>2021-09-18 23:22:12 +0200
commit3a7b37238bc85b8220660e8469543449095bc820 (patch)
treece8129e9a7204c9656682ff4d750b73ff8dc95dd
parentsettings: File selector & other settings (diff)
downloadyuzu-3a7b37238bc85b8220660e8469543449095bc820.tar
yuzu-3a7b37238bc85b8220660e8469543449095bc820.tar.gz
yuzu-3a7b37238bc85b8220660e8469543449095bc820.tar.bz2
yuzu-3a7b37238bc85b8220660e8469543449095bc820.tar.lz
yuzu-3a7b37238bc85b8220660e8469543449095bc820.tar.xz
yuzu-3a7b37238bc85b8220660e8469543449095bc820.tar.zst
yuzu-3a7b37238bc85b8220660e8469543449095bc820.zip
-rw-r--r--src/yuzu/main.cpp9
-rw-r--r--src/yuzu/main.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index f3529d151..10057b9ca 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -30,6 +30,8 @@
#include "core/hle/service/am/applet_oe.h"
#include "core/hle/service/am/applets/applets.h"
+#include "input_common/tas/tas_input.h"
+
// These are wrappers to avoid the calls to CreateDirectory and CreateFile because of the Windows
// defines.
static FileSys::VirtualDir VfsFilesystemCreateDirectoryWrapper(
@@ -824,6 +826,12 @@ void GMainWindow::InitializeWidgets() {
});
statusBar()->insertPermanentWidget(0, renderer_status_button);
+ TASlabel = new QLabel();
+ TASlabel->setObjectName(QStringLiteral("TASlabel"));
+ TASlabel->setText(tr("TAS not running"));
+ TASlabel->setFocusPolicy(Qt::NoFocus);
+ statusBar()->insertPermanentWidget(0, TASlabel);
+
statusBar()->setVisible(true);
setStyleSheet(QStringLiteral("QStatusBar::item{border: none;}"));
}
@@ -2894,6 +2902,7 @@ void GMainWindow::UpdateStatusBar() {
return;
}
+ TASlabel->setText(tr(input_subsystem->GetTas()->GetStatusDescription().c_str()));
auto& system = Core::System::GetInstance();
auto results = system.GetAndResetPerfStats();
auto& shader_notify = system.GPU().ShaderNotify();
diff --git a/src/yuzu/main.h b/src/yuzu/main.h
index 38e66ccd0..edca661ac 100644
--- a/src/yuzu/main.h
+++ b/src/yuzu/main.h
@@ -318,6 +318,7 @@ private:
QLabel* emu_speed_label = nullptr;
QLabel* game_fps_label = nullptr;
QLabel* emu_frametime_label = nullptr;
+ QLabel* TASlabel;
QPushButton* gpu_accuracy_button = nullptr;
QPushButton* renderer_status_button = nullptr;
QPushButton* dock_status_button = nullptr;