diff options
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/bootmanager.cpp | 2 | ||||
| -rw-r--r-- | src/yuzu/main.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 105f36d33..fd0a130a3 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp | |||
| @@ -320,7 +320,7 @@ GRenderWindow::~GRenderWindow() { | |||
| 320 | 320 | ||
| 321 | void GRenderWindow::OnFrameDisplayed() { | 321 | void GRenderWindow::OnFrameDisplayed() { |
| 322 | input_subsystem->GetTas()->UpdateThread(); | 322 | input_subsystem->GetTas()->UpdateThread(); |
| 323 | TasInput::TasState new_tas_state = std::get<0>(input_subsystem->GetTas()->GetStatus()); | 323 | const TasInput::TasState new_tas_state = std::get<0>(input_subsystem->GetTas()->GetStatus()); |
| 324 | 324 | ||
| 325 | if (!first_frame) { | 325 | if (!first_frame) { |
| 326 | last_tas_state = new_tas_state; | 326 | last_tas_state = new_tas_state; |
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 42ee310cc..5058c3e4e 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -2831,7 +2831,7 @@ void GMainWindow::OnTasRecord() { | |||
| 2831 | if (!emulation_running) { | 2831 | if (!emulation_running) { |
| 2832 | return; | 2832 | return; |
| 2833 | } | 2833 | } |
| 2834 | bool is_recording = input_subsystem->GetTas()->Record(); | 2834 | const bool is_recording = input_subsystem->GetTas()->Record(); |
| 2835 | if (!is_recording) { | 2835 | if (!is_recording) { |
| 2836 | const auto res = | 2836 | const auto res = |
| 2837 | QMessageBox::question(this, tr("TAS Recording"), tr("Overwrite file of player 1?"), | 2837 | QMessageBox::question(this, tr("TAS Recording"), tr("Overwrite file of player 1?"), |
| @@ -3042,7 +3042,7 @@ void GMainWindow::OnTasStateChanged() { | |||
| 3042 | bool is_running = false; | 3042 | bool is_running = false; |
| 3043 | bool is_recording = false; | 3043 | bool is_recording = false; |
| 3044 | if (emulation_running) { | 3044 | if (emulation_running) { |
| 3045 | TasInput::TasState tas_status = std::get<0>(input_subsystem->GetTas()->GetStatus()); | 3045 | const TasInput::TasState tas_status = std::get<0>(input_subsystem->GetTas()->GetStatus()); |
| 3046 | is_running = tas_status == TasInput::TasState::Running; | 3046 | is_running = tas_status == TasInput::TasState::Running; |
| 3047 | is_recording = tas_status == TasInput::TasState::Recording; | 3047 | is_recording = tas_status == TasInput::TasState::Recording; |
| 3048 | } | 3048 | } |