MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / stripBasePath

Method stripBasePath

Engine/source/platform/platformFileIO.cpp:563–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563StringTableEntry Platform::stripBasePath(const char *path)
564{
565 if(path == NULL)
566 return NULL;
567
568 StringTableEntry str = tryStripBasePath(path, Platform::getMainDotCsDir());
569
570 if(str != NULL )
571 return str;
572
573 str = tryStripBasePath(path, Platform::getCurrentDirectory());
574 if(str != NULL )
575 return str;
576
577 str = tryStripBasePath(path, Platform::getPrefsPath());
578 if(str != NULL )
579 return str;
580
581 return path;
582}
583
584//-----------------------------------------------------------------------------
585

Callers

nothing calls this directly

Calls 1

tryStripBasePathFunction · 0.85

Tested by

no test coverage detected