| 439 | } |
| 440 | |
| 441 | std::string CMP_FindFile(const std::vector<std::string>& paths, const std::string& filepath) |
| 442 | { |
| 443 | for (size_t i = 0; i < paths.size(); i++) |
| 444 | { |
| 445 | std::string absPath = CMP_ExpandFilePath(CMP_JoinPath(paths[i], filepath)); |
| 446 | if (CMP_FileExists(absPath)) |
| 447 | { |
| 448 | return absPath; |
| 449 | } |
| 450 | } |
| 451 | return std::string(); |
| 452 | } |
| 453 | |
| 454 | std::string CMP_GetFilePathExtension(const std::string& fileName) |
| 455 | { |
no test coverage detected