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

Method applyTweakers

launcher/minecraft/LaunchProfile.cpp:108–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void LaunchProfile::applyTweakers(const QStringList& tweakers)
109{
110 // if the applied tweakers override an existing one, skip it. this effectively moves it later in the sequence
111 QStringList newTweakers;
112 for(auto & tweaker: m_tweakers)
113 {
114 if (tweakers.contains(tweaker))
115 {
116 continue;
117 }
118 newTweakers.append(tweaker);
119 }
120 // then just append the new tweakers (or moved original ones)
121 newTweakers += tweakers;
122 m_tweakers = newTweakers;
123}
124
125void LaunchProfile::applyJarMods(const QList<LibraryPtr>& jarMods)
126{

Callers 1

applyToMethod · 0.80

Calls 2

appendMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected