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

Method applyTo

launcher/minecraft/Component.cpp:85–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void Component::applyTo(LaunchProfile* profile)
86{
87 // do not apply disabled components
88 if (!isEnabled()) {
89 return;
90 }
91 auto vfile = getVersionFile();
92 if (vfile) {
93 vfile->applyTo(profile, m_parent->runtimeContext());
94 } else {
95 profile->applyProblemSeverity(getProblemSeverity());
96 }
97}
98
99std::shared_ptr<class VersionFile> Component::getVersionFile() const
100{

Callers 1

getProfileMethod · 0.45

Calls 2

applyProblemSeverityMethod · 0.80
runtimeContextMethod · 0.45

Tested by

no test coverage detected