From 870acd582701bc67c29b48319972303e5ceb706d Mon Sep 17 00:00:00 2001 From: Ladislav Date: Mon, 18 Nov 2013 12:35:21 +0100 Subject: + Adding files to MPQ no longer removes (listfile) and (attributes) when not enough space in the hash table + Fixes in deletion of files from MPQs v 4.0 --- src/StormCommon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/StormCommon.h') diff --git a/src/StormCommon.h b/src/StormCommon.h index 766b692..dcc9c7f 100644 --- a/src/StormCommon.h +++ b/src/StormCommon.h @@ -170,7 +170,7 @@ TMPQHash * GetNextHashEntry(TMPQArchive * ha, TMPQHash * pFirstHash, TMPQHash * TMPQHash * AllocateHashEntry(TMPQArchive * ha, TFileEntry * pFileEntry); DWORD AllocateHetEntry(TMPQArchive * ha, TFileEntry * pFileEntry); -void FindFreeMpqSpace(TMPQArchive * ha, ULONGLONG * pFreeSpacePos); +ULONGLONG FindFreeMpqSpace(TMPQArchive * ha); // Functions that loads and verifies MPQ data bitmap int LoadMpqDataBitmap(TMPQArchive * ha, ULONGLONG FileSize, bool * pbFileIsComplete); @@ -181,7 +181,7 @@ int LoadAnyHashTable(TMPQArchive * ha); int BuildFileTable(TMPQArchive * ha, ULONGLONG FileSize); int SaveMPQTables(TMPQArchive * ha); -TMPQHetTable * CreateHetTable(DWORD dwMaxFileCount, DWORD dwHashBitSize, bool bCreateEmpty); +TMPQHetTable * CreateHetTable(DWORD dwHashTableSize, DWORD dwFileCount, DWORD dwHashBitSize, bool bCreateEmpty); void FreeHetTable(TMPQHetTable * pHetTable); TMPQBetTable * CreateBetTable(DWORD dwMaxFileCount); -- cgit v1.2.3