| 171 | } |
| 172 | |
| 173 | const sGameVersion* cVersions::GetForCampaign(const std::string& pCampaign) const { |
| 174 | // Look through all available versions for a campaign name match |
| 175 | for (auto& Version : g_ResourceMan->GetAvailable()) { |
| 176 | |
| 177 | if (Version->mName == pCampaign) |
| 178 | return Version; |
| 179 | } |
| 180 | |
| 181 | return 0; |
| 182 | } |
| 183 | |
| 184 | const sGameVersion* cVersions::GetForCampaign(const std::string& pCampaign, const ePlatform pPlatform) const { |
| 185 | // Look through all available versions for a campaign name match |
no test coverage detected