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

Method PreLaunchCommand

launcher/launch/steps/PreLaunchCommand.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37#include <launch/LaunchTask.h>
38
39PreLaunchCommand::PreLaunchCommand(LaunchTask* parent) : LaunchStep(parent)
40{
41 auto instance = m_parent->instance();
42 m_command = instance->getPreLaunchCommand();
43 m_process.setProcessEnvironment(instance->createEnvironment());
44 connect(&m_process, &LoggedProcess::log, this, &PreLaunchCommand::logLines);
45 connect(&m_process, &LoggedProcess::stateChanged, this, &PreLaunchCommand::on_state);
46}
47
48void PreLaunchCommand::executeTask()
49{

Callers

nothing calls this directly

Calls 3

getPreLaunchCommandMethod · 0.80
instanceMethod · 0.45
createEnvironmentMethod · 0.45

Tested by

no test coverage detected