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

Function rootPath

radiantcore/model/md5/MD5ModelLoader.cpp:20–25  ·  view source on GitHub ↗

name may be absolute or relative

Source from the content-addressed store, hash-verified

18{
19 // name may be absolute or relative
20 inline std::string rootPath(const std::string& name)
21 {
22 return GlobalFileSystem().findRoot(
23 path_is_absolute(name.c_str()) ? name : GlobalFileSystem().findFile(name)
24 );
25 }
26} // namespace
27
28const std::string& MD5ModelLoader::getExtension() const

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