MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / play

Method play

tools/launcher/launcherwindow.cpp:350–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350void LauncherWindow::play()
351{
352 saveConfig();
353 this->currentFramework.reset();
354
355#ifdef _WIN32
356 QString path = "OpenApoc.exe";
357#else
358 QString path = QCoreApplication::applicationDirPath() + "/OpenApoc";
359#endif
360
361 LogWarning("Running \"%s\"", path.toStdString());
362 const auto ret = QProcess::startDetached(path, {});
363 if (!ret)
364 {
365 LogError("Failed to start OpenApoc process");
366 }
367 this->exit();
368}
369
370void LauncherWindow::browseCDFile()
371{

Callers 3

beginMethod · 0.45
beginMethod · 0.45
beginMethod · 0.45

Calls 2

exitMethod · 0.95
resetMethod · 0.45

Tested by

no test coverage detected