diff options
author | Ladislav Zezula <zezula@volny.cz> | 2023-12-30 08:59:09 +0100 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2023-12-30 08:59:09 +0100 |
commit | 909ff807e78b0b92afffaf0d5ed7149982d8ac33 (patch) | |
tree | 0b819048623265303dc22374831cc1f84be6f328 /src/SFileCreateArchive.cpp | |
parent | 2e3882409954eb1a3a7830df7d117cd16773fda7 (diff) |
Regression tests passed
Diffstat (limited to 'src/SFileCreateArchive.cpp')
-rw-r--r-- | src/SFileCreateArchive.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SFileCreateArchive.cpp b/src/SFileCreateArchive.cpp index c0ea367..bae3dcc 100644 --- a/src/SFileCreateArchive.cpp +++ b/src/SFileCreateArchive.cpp @@ -238,6 +238,9 @@ bool WINAPI SFileCreateArchive2(const TCHAR * szMpqName, PSFILE_CREATE_MPQ pCrea pHeader->dwBlockTablePos = pHeader->dwHashTablePos + dwHashTableSize * sizeof(TMPQHash); pHeader->dwBlockTableSize = dwBlockTableSize; + // Set the mask for MPQ byte offset + ha->FileOffsetMask = GetFileOffsetMask(ha); + // For MPQs version 4 and higher, we set the size of raw data block // for calculating MD5 if(pCreateInfo->dwMpqVersion >= MPQ_FORMAT_VERSION_4) |