| 106 | } |
| 107 | |
| 108 | void 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 | |
| 125 | void LaunchProfile::applyJarMods(const QList<LibraryPtr>& jarMods) |
| 126 | { |