| 226 | } |
| 227 | |
| 228 | std::vector<std::string> cVersions::GetCampaignNames() const { |
| 229 | std::vector<std::string> SortedList; |
| 230 | |
| 231 | for (auto& KnownVersion : KnownGameVersions) { |
| 232 | for (auto& Version : g_ResourceMan->GetAvailable()) { |
| 233 | |
| 234 | if (Version->mName == KnownVersion.mName) { |
| 235 | // Already have this campaign? |
| 236 | if (std::find(SortedList.begin(), SortedList.end(), Version->mName) != SortedList.end()) |
| 237 | break; |
| 238 | |
| 239 | SortedList.push_back(KnownVersion.mName); |
| 240 | break; |
| 241 | } |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | return SortedList; |
| 246 | } |
| 247 | |
| 248 | std::shared_ptr<cResources> sGameVersion::GetResources() const { |
| 249 | if (isPC()) { |