mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-21 07:04:29 +01:00
Added support for PG1.11.973 protector
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user