aboutsummaryrefslogtreecommitdiff
path: root/src/StormCommon.h
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2020-12-06 11:28:10 +0100
committerLadislav Zezula <zezula@volny.cz>2020-12-06 11:28:10 +0100
commit866269d740b32cf209e5188c5269c4118f8be07b (patch)
tree63b1366b66394057bc15d99c4d2a19d42ab6b840 /src/StormCommon.h
parentb6102b2600f792f159320439686a872a72d20c70 (diff)
* Better checks for MPQ header v 4.0
Diffstat (limited to 'src/StormCommon.h')
-rw-r--r--src/StormCommon.h3
1 files changed, 2 insertions, 1 deletions
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);