| 1315 | } |
| 1316 | |
| 1317 | bool 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 | |
| 1341 | void MainWindow::slotBrowseMoviePath() |
| 1342 | { |