Skip to content
Permalink
Browse files

DolphinQt: Fix OnStopRecording/OnExportRecording logic

  • Loading branch information...
JosJuice committed Mar 13, 2019
1 parent 6c89957 commit 185b1cf90c0f9a786f98c9658bfb4b0fb6963ac8
Showing with 6 additions and 10 deletions.
  1. +6 −10 Source/Core/DolphinQt/MainWindow.cpp
@@ -1567,28 +1567,24 @@ void MainWindow::OnStopRecording()
OnExportRecording();
if (Movie::IsMovieActive())
Movie::EndPlayInput(false);
emit RecordingStatusChanged(true);
emit RecordingStatusChanged(false);
}

void MainWindow::OnExportRecording()
{
bool was_paused = Core::GetState() == Core::State::Paused;

if (was_paused)
if (!was_paused)
Core::SetState(Core::State::Paused);

QString dtm_file = QFileDialog::getSaveFileName(this, tr("Select the Recording File"), QString(),
tr("Dolphin TAS Movies (*.dtm)"));

if (was_paused)
Core::SetState(Core::State::Running);

if (dtm_file.isEmpty())
return;

Core::SetState(Core::State::Running);
if (!dtm_file.isEmpty())
Movie::SaveRecording(dtm_file.toStdString());

Movie::SaveRecording(dtm_file.toStdString());
if (!was_paused)
Core::SetState(Core::State::Running);
}

void MainWindow::ShowTASInput()

0 comments on commit 185b1cf

Please sign in to comment.
You can’t perform that action at this time.