MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / Exists

Method Exists

src/WraithXCOD/WraithXCOD/CascFileSystem.cpp:63–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool CascFileSystem::Exists(const std::string& fileName)
64{
65 CASC_FIND_DATA findData{};
66 HANDLE fileHandle = CascFindFirstFile(StorageHandle, fileName.c_str(), &findData, NULL);
67 bool result = fileHandle != INVALID_HANDLE_VALUE && findData.bFileAvailable > 0;
68 CascFindClose(fileHandle);
69 return result;
70}
71
72size_t CascFileSystem::Read(HANDLE handle, uint8_t* buffer, const size_t offset, const size_t size)
73{

Callers

nothing calls this directly

Calls 2

CascFindFirstFileFunction · 0.85
CascFindCloseFunction · 0.85

Tested by

no test coverage detected