MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / FindFile

Method FindFile

CrySystem/ZipDirCacheRW.cpp:285–297  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////// finds the file by exact path

Source from the content-addressed store, hash-verified

283//////////////////////////////////////////////////////////////////////////
284// finds the file by exact path
285ZipDir::FileEntry* ZipDir::CacheRW::FindFile (const char* szPath, bool bFullInfo)
286{
287 if (!this)
288 return NULL;
289 ZipDir::FindFileRW fd (GetRoot());
290 if (!fd.FindExact(szPath))
291 {
292 assert (!fd.GetFileEntry());
293 return NULL;
294 }
295 assert (fd.GetFileEntry());
296 return fd.GetFileEntry();
297}
298
299// returns the size of memory occupied by the instance referred to by this cache
300size_t ZipDir::CacheRW::GetSize()const

Callers

nothing calls this directly

Calls 2

FindExactMethod · 0.45
GetFileEntryMethod · 0.45

Tested by

no test coverage detected