| 95 | } |
| 96 | |
| 97 | static 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 | |
| 115 | static bool FileWasFoundBefore( |
| 116 | TMPQArchive * ha, |
no outgoing calls
no test coverage detected