aboutsummaryrefslogtreecommitdiff
path: root/src/SBaseFileTable.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula-at-volny-dot-cz>2017-07-26 20:34:02 +0200
committerLadislav Zezula <zezula-at-volny-dot-cz>2017-07-26 20:34:02 +0200
commitf813753a661731f970f0522597c228738bf8d075 (patch)
tree1b6199ad870240473b3f32fd5ce9fc3d8e768d28 /src/SBaseFileTable.cpp
parent6fc99332b52dbd46341a6e02fe5c3ee4cf0e7b59 (diff)
Added support for PG1.11.973 protector
Diffstat (limited to 'src/SBaseFileTable.cpp')
-rw-r--r--src/SBaseFileTable.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/SBaseFileTable.cpp b/src/SBaseFileTable.cpp
index 50bf69e..d9664a5 100644
--- a/src/SBaseFileTable.cpp
+++ b/src/SBaseFileTable.cpp
@@ -338,7 +338,8 @@ int ConvertMpqHeaderToFormat4(
TMPQArchive * ha,
ULONGLONG MpqOffset,
ULONGLONG FileSize,
- DWORD dwFlags)
+ DWORD dwFlags,
+ bool bIsWarcraft3Map)
{
TMPQHeader * pHeader = (TMPQHeader *)ha->HeaderData;
ULONGLONG BlockTablePos64 = 0;
@@ -350,7 +351,7 @@ int ConvertMpqHeaderToFormat4(
// If version 1.0 is forced, then the format version is forced to be 1.0
// Reason: Storm.dll in Warcraft III ignores format version value
- if(dwFlags & MPQ_OPEN_FORCE_MPQ_V1)
+ if((dwFlags & MPQ_OPEN_FORCE_MPQ_V1) || (bIsWarcraft3Map))
wFormatVersion = MPQ_FORMAT_VERSION_1;
// Format-specific fixes