Far Cry 4 Unknown — File With Readfile--

bool LoadResource(const char* path) HANDLE hFile = CreateFileA(path, GENERIC_READ, ...); if (!FindInFAT(path, &fatEntry)) DebugOutput("Unknown file with ReadFile: %s", path); return false; BYTE buffer[fatEntry.size]; DWORD bytesRead; ReadFile(hFile, buffer, fatEntry.size, &bytesRead, NULL);

// ... proceed to load

DWORD crc = ComputeCRC32(buffer, bytesRead); if (crc != fatEntry.crc) DebugOutput("CRC mismatch for %s", path); return false; Far Cry 4 Unknown File With Readfile--

Hello CCL readers! Applications have now opened to join our team. If you are interested, please visit the application page. Thank you!

X