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

Method prepareLaunch

src/program/ui/MainWindow.cpp:1317–1339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1315}
1316
1317bool MainWindow::prepareLaunch(bool attach_gdb)
1318{
1319 context->attach_gdb = attach_gdb;
1320
1321 if (!ErrorChecking::allChecks(context))
1322 return false;
1323
1324 applyLaunchTimeSettings();
1325
1326 context->config.sc.sigint_upon_launch &= context->attach_gdb;
1327 context->config.gameargs = cmdOptions->currentText().toStdString();
1328
1329 if (!confirmDownloadsAllowed())
1330 return false;
1331
1332 context->config.save(context->gamepath);
1333 updateRecentArgs();
1334
1335 if (game_thread.joinable())
1336 game_thread.join();
1337
1338 return true;
1339}
1340
1341void MainWindow::slotBrowseMoviePath()
1342{

Callers

nothing calls this directly

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected