| 214 | } |
| 215 | |
| 216 | void addSearchPath(const char* fullPath) |
| 217 | { |
| 218 | if (FileUtil::directoryExits(fullPath)) |
| 219 | { |
| 220 | const size_t count = s_searchPaths.size(); |
| 221 | const std::string* path = s_searchPaths.data(); |
| 222 | for (size_t i = 0; i < count; i++, path++) |
| 223 | { |
| 224 | // If the path already exists, then don't add it again. |
| 225 | if (!strcasecmp(path->c_str(), fullPath)) |
| 226 | { |
| 227 | return; |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | s_searchPaths.push_back(fullPath); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | void addSearchPathToHead(const char* fullPath) |
| 236 | { |
no test coverage detected