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

Function rootPath

radiantcore/model/NullModelLoader.h:15–19  ·  view source on GitHub ↗

name may be absolute or relative

Source from the content-addressed store, hash-verified

13{
14 // name may be absolute or relative
15 inline std::string rootPath(const std::string& name) {
16 return GlobalFileSystem().findRoot(
17 path_is_absolute(name.c_str()) ? name : GlobalFileSystem().findFile(name)
18 );
19 }
20} // namespace
21
22class NullModelLoader;

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