mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-22 19:35:37 +01:00
main: TAS Playback state label
During script playback/recording, the user has to see what happens currently. For that, a new label has been added to the bottom-left corner, always displaying the current state of the TASing system.
This commit is contained in:
parent
f25d6ebc45
commit
3a7b37238b
@ -30,6 +30,8 @@
|
|||||||
#include "core/hle/service/am/applet_oe.h"
|
#include "core/hle/service/am/applet_oe.h"
|
||||||
#include "core/hle/service/am/applets/applets.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
|
// These are wrappers to avoid the calls to CreateDirectory and CreateFile because of the Windows
|
||||||
// defines.
|
// defines.
|
||||||
static FileSys::VirtualDir VfsFilesystemCreateDirectoryWrapper(
|
static FileSys::VirtualDir VfsFilesystemCreateDirectoryWrapper(
|
||||||
@ -824,6 +826,12 @@ void GMainWindow::InitializeWidgets() {
|
|||||||
});
|
});
|
||||||
statusBar()->insertPermanentWidget(0, renderer_status_button);
|
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);
|
statusBar()->setVisible(true);
|
||||||
setStyleSheet(QStringLiteral("QStatusBar::item{border: none;}"));
|
setStyleSheet(QStringLiteral("QStatusBar::item{border: none;}"));
|
||||||
}
|
}
|
||||||
@ -2894,6 +2902,7 @@ void GMainWindow::UpdateStatusBar() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TASlabel->setText(tr(input_subsystem->GetTas()->GetStatusDescription().c_str()));
|
||||||
auto& system = Core::System::GetInstance();
|
auto& system = Core::System::GetInstance();
|
||||||
auto results = system.GetAndResetPerfStats();
|
auto results = system.GetAndResetPerfStats();
|
||||||
auto& shader_notify = system.GPU().ShaderNotify();
|
auto& shader_notify = system.GPU().ShaderNotify();
|
||||||
|
@ -318,6 +318,7 @@ private:
|
|||||||
QLabel* emu_speed_label = nullptr;
|
QLabel* emu_speed_label = nullptr;
|
||||||
QLabel* game_fps_label = nullptr;
|
QLabel* game_fps_label = nullptr;
|
||||||
QLabel* emu_frametime_label = nullptr;
|
QLabel* emu_frametime_label = nullptr;
|
||||||
|
QLabel* TASlabel;
|
||||||
QPushButton* gpu_accuracy_button = nullptr;
|
QPushButton* gpu_accuracy_button = nullptr;
|
||||||
QPushButton* renderer_status_button = nullptr;
|
QPushButton* renderer_status_button = nullptr;
|
||||||
QPushButton* dock_status_button = nullptr;
|
QPushButton* dock_status_button = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user