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

Method applyTweakers

launcher/minecraft/LaunchProfile.cpp:107–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

applyToMethod · 0.80

Calls 2

appendMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected