MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / applyTo

Method applyTo

launcher/minecraft/Component.cpp:88–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

getProfileMethod · 0.45

Calls 2

applyProblemSeverityMethod · 0.80
runtimeContextMethod · 0.45

Tested by

no test coverage detected