| 249 | } |
| 250 | |
| 251 | std::string cResourceMan::FindVersionPath(const sGameVersion* pVersion) const { |
| 252 | |
| 253 | for (auto Release = mReleasePath.begin(); Release != mReleasePath.end(); ++Release) { |
| 254 | |
| 255 | if (Release->first->mRelease == pVersion->mRelease) { |
| 256 | if (Release->first->mGame == pVersion->mGame) { |
| 257 | if (Release->first->mPlatform == pVersion->mPlatform || pVersion->mPlatform == ePlatform::Any) { |
| 258 | |
| 259 | return Release->second; |
| 260 | } |
| 261 | } |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | return ""; |
| 266 | } |
| 267 | |
| 268 | std::string cResourceMan::GetFilePath(const sGameVersion* pVersion, std::string pFile) const { |
| 269 | transform(pFile.begin(), pFile.end(), pFile.begin(), ::tolower); |
no test coverage detected