Regression tests passed

This commit is contained in:
Ladislav Zezula
2023-12-30 08:59:09 +01:00
parent 2e38824099
commit 909ff807e7
8 changed files with 105 additions and 78 deletions

View File

@@ -463,6 +463,11 @@ bool WINAPI SFileOpenArchive(
if(IsStarcraftBetaArchive(ha->pHeader))
ha->dwFlags |= MPQ_FLAG_STARCRAFT_BETA;
// Set the mask for the file offset. In MPQs version 1,
// all offsets are 32-bit and overflow is allowed.
// For MPQs v2+, file offset if 64-bit.
ha->FileOffsetMask = GetFileOffsetMask(ha);
// Maps from StarCraft and Warcraft III need special treatment
switch(MapType)
{