| 591 | } |
| 592 | |
| 593 | int file_select(const struct dirent *entry) { |
| 594 | std::string name = entry->d_name; |
| 595 | |
| 596 | transform(name.begin(), name.end(), name.begin(), ::toupper); |
| 597 | |
| 598 | if (name.find(findType) == std::string::npos) |
| 599 | return false; |
| 600 | |
| 601 | return true; |
| 602 | } |
| 603 | |
| 604 | std::vector<std::string> cResourceMan::DirectoryList(const std::string& pPath, const std::string& pExtension) { |
| 605 | struct dirent **directFiles; |