yuzu-emu
/
yuzu
Archived
1
0
Fork 0

yuzu: Fix TAS from rebase

This commit is contained in:
german77 2021-11-21 22:37:50 -06:00 committed by Narr the Reg
parent 746c85b560
commit e64ee99f00
3 changed files with 11 additions and 9 deletions

View File

@ -320,7 +320,8 @@ GRenderWindow::~GRenderWindow() {
void GRenderWindow::OnFrameDisplayed() {
input_subsystem->GetTas()->UpdateThread();
const TasInput::TasState new_tas_state = std::get<0>(input_subsystem->GetTas()->GetStatus());
const InputCommon::TasInput::TasState new_tas_state =
std::get<0>(input_subsystem->GetTas()->GetStatus());
if (!first_frame) {
last_tas_state = new_tas_state;

View File

@ -33,15 +33,15 @@ class InputSubsystem;
enum class MouseButton;
} // namespace InputCommon
namespace InputCommon::TasInput {
enum class TasState;
} // namespace InputCommon::TasInput
namespace VideoCore {
enum class LoadCallbackStage;
class RendererBase;
} // namespace VideoCore
namespace TasInput {
enum class TasState;
}
class EmuThread final : public QThread {
Q_OBJECT
@ -245,7 +245,7 @@ private:
QWidget* child_widget = nullptr;
bool first_frame = false;
TasInput::TasState last_tas_state;
InputCommon::TasInput::TasState last_tas_state;
std::array<std::size_t, 16> touch_ids{};

View File

@ -2992,9 +2992,10 @@ void GMainWindow::OnTasStateChanged() {
bool is_running = false;
bool is_recording = false;
if (emulation_running) {
const TasInput::TasState tas_status = std::get<0>(input_subsystem->GetTas()->GetStatus());
is_running = tas_status == TasInput::TasState::Running;
is_recording = tas_status == TasInput::TasState::Recording;
const InputCommon::TasInput::TasState tas_status =
std::get<0>(input_subsystem->GetTas()->GetStatus());
is_running = tas_status == InputCommon::TasInput::TasState::Running;
is_recording = tas_status == InputCommon::TasInput::TasState::Recording;
}
ui->action_TAS_Start->setText(is_running ? tr("&Stop Running") : tr("&Start"));