MCPcopy Create free account
hub / github.com/diasurgical/devilution / GetSearchTableItems

Function GetSearchTableItems

3rdParty/StormLib/src/SFileFindFile.cpp:97–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static DWORD GetSearchTableItems(TMPQArchive * ha)
98{
99 DWORD dwMergeItems = 0;
100
101 // Loop over all patches
102 while(ha != NULL)
103 {
104 // Append the number of files
105 dwMergeItems += (ha->pHetTable != NULL) ? ha->pHetTable->dwEntryCount
106 : ha->pHeader->dwBlockTableSize;
107 // Move to the patched archive
108 ha = ha->haPatch;
109 }
110
111 // Return the double size of number of items
112 return (dwMergeItems | 1);
113}
114
115static bool FileWasFoundBefore(
116 TMPQArchive * ha,

Callers 1

SFileFindFirstFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected