| 105 | } |
| 106 | |
| 107 | void 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 | |
| 122 | void LaunchProfile::applyJarMods(const QList<LibraryPtr>& jarMods) |
| 123 | { |