From 866269d740b32cf209e5188c5269c4118f8be07b Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Sun, 6 Dec 2020 11:28:10 +0100 Subject: * Better checks for MPQ header v 4.0 --- src/StormCommon.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/StormCommon.h') diff --git a/src/StormCommon.h b/src/StormCommon.h index 1167d29..9f9715f 100644 --- a/src/StormCommon.h +++ b/src/StormCommon.h @@ -75,6 +75,7 @@ typedef enum _MTYPE { + MapTypeNotChecked, // The map type was not checked yet MapTypeNotRecognized, // The file does not seems to be a map MapTypeAviFile, // The file is actually an AVI file (Warcraft III cinematics) MapTypeWarcraft3, // The file is a Warcraft III map @@ -310,7 +311,7 @@ int SCompDecompressMpk(void * pvOutBuffer, int * pcbOutBuffer, void * pvInBuffer TMPQFile * CreateFileHandle(TMPQArchive * ha, TFileEntry * pFileEntry); TMPQFile * CreateWritableHandle(TMPQArchive * ha, DWORD dwFileSize); -void * LoadMpqTable(TMPQArchive * ha, ULONGLONG ByteOffset, DWORD dwCompressedSize, DWORD dwRealSize, DWORD dwKey, bool * pbTableIsCut); +void * LoadMpqTable(TMPQArchive * ha, ULONGLONG ByteOffset, LPBYTE pbTableHash, DWORD dwCompressedSize, DWORD dwRealSize, DWORD dwKey, bool * pbTableIsCut); int AllocateSectorBuffer(TMPQFile * hf); int AllocatePatchInfo(TMPQFile * hf, bool bLoadFromFile); int AllocateSectorOffsets(TMPQFile * hf, bool bLoadFromFile); -- cgit v1.2.3