MCPcopy Create free account
hub / github.com/clementgallet/libTAS / slotExportMovie

Method slotExportMovie

src/program/ui/MainWindow.cpp:1369–1380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1367}
1368
1369void MainWindow::slotExportMovie()
1370{
1371 if (context->config.sc.recording != SharedConfig::NO_RECORDING) {
1372 QString filename = QFileDialog::getSaveFileName(this, tr("Choose a movie file"), context->config.moviefile.c_str(), tr("libTAS movie files (*.ltm)"));
1373 if (!filename.isNull()) {
1374 int ret = gameLoop->movie.saveMovie(filename.toStdString());
1375 if (ret < 0) {
1376 QMessageBox::warning(this, "Warning", gameLoop->movie.errorString(ret));
1377 }
1378 }
1379 }
1380}
1381
1382void MainWindow::slotPauseMovie()
1383{

Callers

nothing calls this directly

Calls 3

saveMovieMethod · 0.80
errorStringMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected