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