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

Function addSingleFilePath

TheForceEngine/TFE_FileSystem/paths.cpp:272–284  ·  view source on GitHub ↗

Add a single file that can be referenced by 'fileName' even though the real name may be different.

Source from the content-addressed store, hash-verified

270
271 // Add a single file that can be referenced by 'fileName' even though the real name may be different.
272 void addSingleFilePath(const char* fileName, const char* filePath)
273 {
274 char fileNameLC[TFE_MAX_PATH];
275 strcpy(fileNameLC, fileName);
276 __strlwr(fileNameLC);
277
278 char filePathFixed[TFE_MAX_PATH];
279 strcpy(filePathFixed, filePath);
280 FileUtil::fixupPath(filePathFixed);
281
282 FileMapping mapping = { fileNameLC, filePathFixed };
283 s_fileMappings.push_back(mapping);
284 }
285
286 void addLocalSearchPath(const char* localSearchPath)
287 {

Callers 1

loadCustomGobFunction · 0.50

Calls 3

__strlwrFunction · 0.85
push_backMethod · 0.80
fixupPathFunction · 0.70

Tested by

no test coverage detected