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

Method openFile

radiantcore/vfs/Doom3FileSystem.cpp:210–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210ArchiveFilePtr Doom3FileSystem::openFile(const std::string& filename)
211{
212 if (filename.find("\\") != std::string::npos)
213 {
214 rError() << "Filename contains backslash: " << filename << std::endl;
215 return ArchiveFilePtr();
216 }
217
218 for (const auto& descriptor : _archives)
219 {
220 auto file = descriptor.archive->openFile(filename);
221
222 if (file)
223 {
224 return file;
225 }
226 }
227
228 // not found
229 return ArchiveFilePtr();
230}
231
232ArchiveFilePtr Doom3FileSystem::openFileInAbsolutePath(const std::string& filename)
233{

Callers

nothing calls this directly

Calls 2

rErrorFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected