MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / executeTask

Method executeTask

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

substituteVariablesMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected