MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / executeTask

Method executeTask

launcher/launch/steps/PostLaunchCommand.cpp:48–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void PostLaunchCommand::executeTask()
49{
50 auto cmd = m_parent->substituteVariables(m_command);
51 emit logLine(tr("Running Post-Launch command: %1").arg(cmd), MessageLevel::Launcher);
52#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
53 auto args = QProcess::splitCommand(cmd);
54
55 const QString program = args.takeFirst();
56 m_process.start(program, args);
57#else
58 m_process.start(cmd);
59#endif
60}
61
62void PostLaunchCommand::on_state(LoggedProcess::State state)
63{

Callers

nothing calls this directly

Calls 2

substituteVariablesMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected