mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-20 22:57:20 +01:00
Added support for amternative MPQ markers
This commit is contained in:
@@ -2336,7 +2336,7 @@ static TMPQHash * LoadHashTable(TMPQArchive * ha)
|
||||
dwCmpSize = (DWORD)pHeader->HashTableSize64;
|
||||
|
||||
// Read, decrypt and uncompress the hash table
|
||||
pHashTable = (TMPQHash *)LoadMpqTable(ha, ByteOffset, pHeader->MD5_HashTable, dwCmpSize, dwTableSize, MPQ_KEY_HASH_TABLE, &bHashTableIsCut);
|
||||
pHashTable = (TMPQHash *)LoadMpqTable(ha, ByteOffset, pHeader->MD5_HashTable, dwCmpSize, dwTableSize, g_dwHashTableKey, &bHashTableIsCut);
|
||||
// DumpHashTable(pHashTable, pHeader->dwHashTableSize);
|
||||
|
||||
// If the hash table was cut, we can/have to defragment it
|
||||
@@ -2397,7 +2397,7 @@ TMPQBlock * LoadBlockTable(TMPQArchive * ha, bool /* bDontFixEntries */)
|
||||
dwCmpSize = (DWORD)pHeader->BlockTableSize64;
|
||||
|
||||
// Read, decrypt and uncompress the block table
|
||||
pBlockTable = (TMPQBlock * )LoadMpqTable(ha, ByteOffset, NULL, dwCmpSize, dwTableSize, MPQ_KEY_BLOCK_TABLE, &bBlockTableIsCut);
|
||||
pBlockTable = (TMPQBlock * )LoadMpqTable(ha, ByteOffset, NULL, dwCmpSize, dwTableSize, g_dwBlockTableKey, &bBlockTableIsCut);
|
||||
|
||||
// If the block table was cut, we need to remember it
|
||||
if(pBlockTable != NULL && bBlockTableIsCut)
|
||||
|
||||
Reference in New Issue
Block a user