| 124 | } |
| 125 | |
| 126 | Path FindImagePath(const char* path, PathFlagsBitfield flags, bool is_necessary) { |
| 127 | Path p; |
| 128 | |
| 129 | strcpy(p.original, path); |
| 130 | |
| 131 | if (FindImagePath(p.original, p.resolved, kPathSize, flags, is_necessary, &p.source) == 0) { |
| 132 | p.valid = true; |
| 133 | } else { |
| 134 | p.valid = false; |
| 135 | } |
| 136 | |
| 137 | return p; |
| 138 | } |
| 139 | |
| 140 | Path FindFilePath(const string& path, PathFlagsBitfield flags, bool is_necessary) { |
| 141 | return FindFilePath(path.c_str(), flags, is_necessary); |
no test coverage detected