| 2229 | } |
| 2230 | |
| 2231 | std::vector<ModInstance*>::iterator ModLoading::GetMod(const std::string& path) { |
| 2232 | std::vector<ModInstance*>::iterator modit = mods.begin(); |
| 2233 | |
| 2234 | for (; modit != mods.end(); modit++) { |
| 2235 | if ((*modit)->path == path) { |
| 2236 | break; |
| 2237 | } |
| 2238 | } |
| 2239 | |
| 2240 | return modit; |
| 2241 | } |
| 2242 | |
| 2243 | bool ModLoading::IsCampaignPresent(const std::string& campaign) { |
| 2244 | for (auto& mod : mods) { |
no test coverage detected