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

Method findRoot

radiantcore/vfs/Doom3FileSystem.cpp:354–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354std::string Doom3FileSystem::findRoot(const std::string& name)
355{
356 for (const auto& descriptor : _archives)
357 {
358 if (!descriptor.is_pakfile && path_equal_n(name.c_str(), descriptor.name.c_str(), descriptor.name.size()))
359 {
360 return descriptor.name;
361 }
362 }
363
364 return std::string();
365}
366
367void Doom3FileSystem::initPakFile(const std::string& filename)
368{

Callers 6

geRelativeDeclSavePathFunction · 0.45
rootPathFunction · 0.45
rootPathFunction · 0.45
rootPathFunction · 0.45
rootPathFunction · 0.45
exportSelectedAsModelFunction · 0.45

Calls 3

path_equal_nFunction · 0.85
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected