MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / addSearchPath

Function addSearchPath

TheForceEngine/TFE_FileSystem/paths.cpp:216–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

addLocalSearchPathFunction · 0.70
addAbsoluteSearchPathFunction · 0.70

Calls 5

dataMethod · 0.80
c_strMethod · 0.80
push_backMethod · 0.80
directoryExitsFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected