mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-30 15:02:43 +00:00
Merge pull request #9596 from Minty-Meeo/apply-moar-RunAsCPUThread
Apply More Core::RunAsCPUThread
This commit is contained in:
commit
c915b780cf
3 changed files with 24 additions and 47 deletions
|
@ -1675,19 +1675,12 @@ void MainWindow::OnStopRecording()
|
|||
|
||||
void MainWindow::OnExportRecording()
|
||||
{
|
||||
bool was_paused = Core::GetState() == Core::State::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 (!dtm_file.isEmpty())
|
||||
Movie::SaveRecording(dtm_file.toStdString());
|
||||
|
||||
if (!was_paused)
|
||||
Core::SetState(Core::State::Running);
|
||||
Core::RunAsCPUThread([this] {
|
||||
QString dtm_file = QFileDialog::getSaveFileName(this, tr("Select the Recording File"),
|
||||
QString(), tr("Dolphin TAS Movies (*.dtm)"));
|
||||
if (!dtm_file.isEmpty())
|
||||
Movie::SaveRecording(dtm_file.toStdString());
|
||||
});
|
||||
}
|
||||
|
||||
void MainWindow::OnActivateChat()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue