MCPcopy Create free account
hub / github.com/ZDoom/Raze / SaveCRCs

Function SaveCRCs

source/core/searchpaths.cpp:371–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369//==========================================================================
370
371void SaveCRCs(TArray<FileEntry>& crclist)
372{
373 auto cachepath = M_GetAppDataPath(true) + "/grpcrccache.txt";
374
375 FileWriter* fw = FileWriter::Open(cachepath.GetChars());
376 if (fw)
377 {
378 for (auto& crc : crclist)
379 {
380 FStringf line("\"%s\" %zu %zu %u\n", crc.FileName.GetChars(), crc.FileLength, crc.FileTime, crc.CRCValue);
381 fw->Write(line.GetChars(), line.Len());
382 }
383 delete fw;
384 }
385}
386
387//==========================================================================
388//

Callers 1

GrpScanFunction · 0.85

Calls 5

OpenFunction · 0.85
LenMethod · 0.80
M_GetAppDataPathFunction · 0.50
GetCharsMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected