| 55 | } |
| 56 | |
| 57 | bool ResourceFinder::findFirst() |
| 58 | { |
| 59 | while (next()) { |
| 60 | if (m_log) |
| 61 | LOG("Searching file \"%s\"...", filename().c_str()); |
| 62 | |
| 63 | if (base::is_file(filename())) { |
| 64 | if (m_log) |
| 65 | LOG(" (found)\n"); |
| 66 | |
| 67 | return true; |
| 68 | } |
| 69 | else if (m_log) |
| 70 | LOG(" (not found)\n"); |
| 71 | } |
| 72 | |
| 73 | return false; |
| 74 | } |
| 75 | |
| 76 | void ResourceFinder::addPath(const std::string& path) |
| 77 | { |
no test coverage detected