mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-24 02:42:49 +00:00
const fixes
This commit is contained in:
parent
b7a938e817
commit
097de2febc
|
@ -320,7 +320,7 @@ GRenderWindow::~GRenderWindow() {
|
||||||
|
|
||||||
void GRenderWindow::OnFrameDisplayed() {
|
void GRenderWindow::OnFrameDisplayed() {
|
||||||
input_subsystem->GetTas()->UpdateThread();
|
input_subsystem->GetTas()->UpdateThread();
|
||||||
TasInput::TasState new_tas_state = std::get<0>(input_subsystem->GetTas()->GetStatus());
|
const TasInput::TasState new_tas_state = std::get<0>(input_subsystem->GetTas()->GetStatus());
|
||||||
|
|
||||||
if (!first_frame) {
|
if (!first_frame) {
|
||||||
last_tas_state = new_tas_state;
|
last_tas_state = new_tas_state;
|
||||||
|
|
|
@ -2831,7 +2831,7 @@ void GMainWindow::OnTasRecord() {
|
||||||
if (!emulation_running) {
|
if (!emulation_running) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
bool is_recording = input_subsystem->GetTas()->Record();
|
const bool is_recording = input_subsystem->GetTas()->Record();
|
||||||
if (!is_recording) {
|
if (!is_recording) {
|
||||||
const auto res =
|
const auto res =
|
||||||
QMessageBox::question(this, tr("TAS Recording"), tr("Overwrite file of player 1?"),
|
QMessageBox::question(this, tr("TAS Recording"), tr("Overwrite file of player 1?"),
|
||||||
|
@ -3042,7 +3042,7 @@ void GMainWindow::OnTasStateChanged() {
|
||||||
bool is_running = false;
|
bool is_running = false;
|
||||||
bool is_recording = false;
|
bool is_recording = false;
|
||||||
if (emulation_running) {
|
if (emulation_running) {
|
||||||
TasInput::TasState tas_status = std::get<0>(input_subsystem->GetTas()->GetStatus());
|
const TasInput::TasState tas_status = std::get<0>(input_subsystem->GetTas()->GetStatus());
|
||||||
is_running = tas_status == TasInput::TasState::Running;
|
is_running = tas_status == TasInput::TasState::Running;
|
||||||
is_recording = tas_status == TasInput::TasState::Recording;
|
is_recording = tas_status == TasInput::TasState::Recording;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue