diff options
author | Zezula Ladislav <ladislav.zezula@avast.com> | 2017-07-28 10:43:49 +0200 |
---|---|---|
committer | Zezula Ladislav <ladislav.zezula@avast.com> | 2017-07-28 10:43:49 +0200 |
commit | 80021e4a6704d1854a37aa183c62323ff1cf9011 (patch) | |
tree | 187c977feeef0849e97b56d2a4a56d37a3da6b6c /src/StormLib.h | |
parent | f813753a661731f970f0522597c228738bf8d075 (diff) |
+ Fixed bug when SFileAddFileEx could add a file with MPQ_FILE_SINGLE_UNIT to a Warcraft III map
Diffstat (limited to 'src/StormLib.h')
-rw-r--r-- | src/StormLib.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 |