MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / cf_GetfileCRC

Function cf_GetfileCRC

cfile/cfile.cpp:947–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945}
946
947uint32_t cf_GetfileCRC(const std::filesystem::path &src) {
948 CFILE *infile = cfopen(src, "rb");
949 if (!infile)
950 return 0xFFFFFFFF;
951
952 uint32_t crc = cf_CalculateFileCRC(infile);
953 cfclose(infile);
954
955 return crc;
956}
957
958char cfile_search_wildcard[256];
959std::shared_ptr<library> cfile_search_library;

Callers 4

CreateCRCFileNameFunction · 0.85
MultiAskForFileFunction · 0.85
msn_ExtractZipFileFunction · 0.85

Calls 3

cfopenFunction · 0.85
cf_CalculateFileCRCFunction · 0.85
cfcloseFunction · 0.85

Tested by

no test coverage detected