MCPcopy Create free account
hub / github.com/MultiMC/Launcher / PreLaunchCommand

Method PreLaunchCommand

launcher/launch/steps/PreLaunchCommand.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#include <launch/LaunchTask.h>
18
19PreLaunchCommand::PreLaunchCommand(LaunchTask *parent) : LaunchStep(parent)
20{
21 auto instance = m_parent->instance();
22 m_command = instance->getPreLaunchCommand();
23 m_process.setProcessEnvironment(instance->createEnvironment());
24 connect(&m_process, &LoggedProcess::log, this, &PreLaunchCommand::logLines);
25 connect(&m_process, &LoggedProcess::stateChanged, this, &PreLaunchCommand::on_state);
26}
27
28void PreLaunchCommand::executeTask()
29{

Callers

nothing calls this directly

Calls 3

getPreLaunchCommandMethod · 0.80
instanceMethod · 0.45
createEnvironmentMethod · 0.45

Tested by

no test coverage detected