From 699180bf90ef4952dc7e0f57ce025f54424e30cd Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Mon, 13 Jan 2014 14:11:30 +0100 Subject: + Support for MPQs locked by the Spazzler protector --- src/StormLib.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/StormLib.h') diff --git a/src/StormLib.h b/src/StormLib.h index a0cfeb6..b1064d5 100644 --- a/src/StormLib.h +++ b/src/StormLib.h @@ -500,6 +500,7 @@ void SetBits(TBitArray * array, unsigned int nBitPosition, unsigned int nBitLeng #define MPQ_HEADER_SIZE_V2 0x2C #define MPQ_HEADER_SIZE_V3 0x44 #define MPQ_HEADER_SIZE_V4 0xD0 +#define MPQ_HEADER_DWORDS (MPQ_HEADER_SIZE_V4 / 0x04) typedef struct _TMPQUserData { @@ -837,7 +838,7 @@ typedef struct _TMPQArchive HASH_STRING pfnHashString; // Hashing function that will convert the file name into hash TMPQUserData UserData; // MPQ user data. Valid only when ID_MPQ_USERDATA has been found - BYTE HeaderData[MPQ_HEADER_SIZE_V4]; // Storage for MPQ header + DWORD HeaderData[MPQ_HEADER_DWORDS]; // Storage for MPQ header DWORD dwHETBlockSize; DWORD dwBETBlockSize; -- cgit v1.2.3