MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / rootPath

Function rootPath

radiantcore/map/MapResource.cpp:45–49  ·  view source on GitHub ↗

name may be absolute or relative

Source from the content-addressed store, hash-verified

43{
44 // name may be absolute or relative
45 inline std::string rootPath(const std::string& name) {
46 return GlobalFileSystem().findRoot(
47 path_is_absolute(name.c_str()) ? name : GlobalFileSystem().findFile(name)
48 );
49 }
50}
51
52MapResource::MapResource(const std::string& resourcePath)

Callers 1

constructPathsMethod · 0.70

Calls 4

path_is_absoluteFunction · 0.85
findRootMethod · 0.45
c_strMethod · 0.45
findFileMethod · 0.45

Tested by

no test coverage detected