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

Function rootPath

radiantcore/model/import/ModelImporterBase.cpp:17–22  ·  view source on GitHub ↗

name may be absolute or relative

Source from the content-addressed store, hash-verified

15{
16 // name may be absolute or relative
17 inline std::string rootPath(const std::string& name)
18 {
19 return GlobalFileSystem().findRoot(
20 path_is_absolute(name.c_str()) ? name : GlobalFileSystem().findFile(name)
21 );
22 }
23}
24
25ModelImporterBase::ModelImporterBase(const std::string& extension) :

Callers 1

loadModelMethod · 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