| 266 | } |
| 267 | |
| 268 | std::string cResourceMan::GetFilePath(const sGameVersion* pVersion, std::string pFile) const { |
| 269 | transform(pFile.begin(), pFile.end(), pFile.begin(), ::tolower); |
| 270 | |
| 271 | auto VerFiles = mReleaseFiles.find(pVersion); |
| 272 | if (VerFiles == mReleaseFiles.end()) |
| 273 | return ""; |
| 274 | |
| 275 | for (const auto& File : VerFiles->second) { |
| 276 | if (File.first == pFile) |
| 277 | return File.second; |
| 278 | } |
| 279 | |
| 280 | return ""; |
| 281 | } |
| 282 | |
| 283 | std::string cResourceMan::PathGenerate(const std::string& pFile, eDataType pDataType) const { |
| 284 | std::stringstream filePathFinal; |
no test coverage detected