| 86 | } |
| 87 | |
| 88 | static int findLibraryByName(QList<LibraryPtr> *haystack, const GradleSpecifier &needle) |
| 89 | { |
| 90 | int retval = -1; |
| 91 | for (int i = 0; i < haystack->size(); ++i) |
| 92 | { |
| 93 | if (haystack->at(i)->rawName().matchName(needle)) |
| 94 | { |
| 95 | // only one is allowed. |
| 96 | if (retval != -1) |
| 97 | return -1; |
| 98 | retval = i; |
| 99 | } |
| 100 | } |
| 101 | return retval; |
| 102 | } |
| 103 | |
| 104 | void LaunchProfile::applyMods(const QList<LibraryPtr>& mods) |
| 105 | { |
no test coverage detected