Far Cry 4 Unknown File With Readfile-- Online

DWORD crc = ComputeCRC32(buffer, bytesRead); if (crc != fatEntry.crc) DebugOutput("CRC mismatch for %s", path); return false;

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); Far Cry 4 Unknown File With Readfile--

// ... proceed to load