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

Method PostLaunchCommand

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getPostExitCommandMethod · 0.80
instanceMethod · 0.45
createEnvironmentMethod · 0.45

Tested by

no test coverage detected