From 80021e4a6704d1854a37aa183c62323ff1cf9011 Mon Sep 17 00:00:00 2001 From: Zezula Ladislav Date: Fri, 28 Jul 2017 10:43:49 +0200 Subject: + Fixed bug when SFileAddFileEx could add a file with MPQ_FILE_SINGLE_UNIT to a Warcraft III map --- src/StormLib.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/StormLib.h') diff --git a/src/StormLib.h b/src/StormLib.h index dfa31f9..ca84cbc 100644 --- a/src/StormLib.h +++ b/src/StormLib.h @@ -231,6 +231,15 @@ extern "C" { MPQ_FILE_SIGNATURE | \ MPQ_FILE_EXISTS) +#define MPQ_FILE_VALID_FLAGS_W3X (MPQ_FILE_IMPLODE | \ + MPQ_FILE_COMPRESS | \ + MPQ_FILE_ENCRYPTED | \ + MPQ_FILE_FIX_KEY | \ + MPQ_FILE_DELETE_MARKER | \ + MPQ_FILE_SECTOR_CRC | \ + MPQ_FILE_SIGNATURE | \ + MPQ_FILE_EXISTS) + // We need to mask out the upper 4 bits of the block table index. // This is because it gets shifted out when calculating block table offset // BlockTableOffset = pHash->dwBlockIndex << 0x04 -- cgit v1.2.3