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

Method getFileCount

radiantcore/vfs/Doom3FileSystem.cpp:166–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166int Doom3FileSystem::getFileCount(const std::string& filename)
167{
168 int count = 0;
169 std::string fixedFilename(os::standardPath(filename));
170
171 for (const ArchiveDescriptor& descriptor : _archives)
172 {
173 if (descriptor.archive->containsFile(fixedFilename))
174 {
175 ++count;
176 }
177 }
178
179 return count;
180}
181
182FileInfo Doom3FileSystem::getFileInfo(const std::string& vfsRelativePath)
183{

Callers 1

TEST_FFunction · 0.45

Calls 2

standardPathFunction · 0.85
containsFileMethod · 0.45

Tested by

no test coverage detected