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

Method applyTo

launcher/minecraft/Component.cpp:53–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void Component::applyTo(LaunchProfile* profile)
54{
55 // do not apply disabled components
56 if(!isEnabled())
57 {
58 return;
59 }
60 auto vfile = getVersionFile();
61 if(vfile)
62 {
63 vfile->applyTo(profile);
64 }
65 else
66 {
67 profile->applyProblemSeverity(getProblemSeverity());
68 }
69}
70
71std::shared_ptr<class VersionFile> Component::getVersionFile() const
72{

Callers 1

getProfileMethod · 0.45

Calls 1

applyProblemSeverityMethod · 0.80

Tested by

no test coverage detected