MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetDirPath

Function GetDirPath

shadercompiler/CachingIncludeHandler.cpp:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace
23{
24std::string GetDirPath( const char* filepath )
25{
26#if _WIN32
27 const char* filename = PathFindFileName( filepath );
28 return std::string( filepath, filename - filepath );
29#else
30 char storage[MAXPATHLEN];
31 const char* dirName = dirname_r( filepath, storage );
32 return dirName;
33#endif
34}
35
36std::optional<std::string> JoinPath( const char* path1, const char* path2 )
37{

Callers 2

OpenMethod · 0.85
SetRootPathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected