| 2241 | } |
| 2242 | |
| 2243 | bool ModLoading::IsCampaignPresent(const std::string& campaign) { |
| 2244 | for (auto& mod : mods) { |
| 2245 | if (mod->IsActive()) { |
| 2246 | for (uint32_t j = 0; j < mod->campaigns.size(); j++) { |
| 2247 | if (strmtch(mod->campaigns[j].id, campaign)) { |
| 2248 | return true; |
| 2249 | } |
| 2250 | } |
| 2251 | } |
| 2252 | } |
| 2253 | return false; |
| 2254 | } |
| 2255 | |
| 2256 | bool ModLoading::CampaignHasLevel(const std::string& campaign, const std::string& level_path) { |
| 2257 | for (auto& mod : mods) { |