aboutsummaryrefslogtreecommitdiff
path: root/test/StormTest.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2020-12-13 12:32:25 +0100
committerLadislav Zezula <zezula@volny.cz>2020-12-13 12:32:25 +0100
commit383e1572eecafdfe4f92ddad7a4bece069e12f38 (patch)
tree9c419d10e4cb4e2e569155f91cc93a7fdec62efc /test/StormTest.cpp
parent866269d740b32cf209e5188c5269c4118f8be07b (diff)
Added support for amternative MPQ markers
Diffstat (limited to 'test/StormTest.cpp')
-rw-r--r--test/StormTest.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/StormTest.cpp b/test/StormTest.cpp
index 497ecee..8b54a43 100644
--- a/test/StormTest.cpp
+++ b/test/StormTest.cpp
@@ -322,6 +322,8 @@ static bool IsMpqExtension(LPCTSTR szFileName)
return true;
if(!_tcsicmp(szExtension, _T(".w3x")))
return true;
+ if(!_tcsicmp(szExtension, _T(".asi")))
+ return true;
if(!_tcsicmp(szExtension, _T(".mpqe")))
return true;
if(!_tcsicmp(szExtension, _T(".part")))
@@ -994,7 +996,7 @@ static int VerifyFileMpqHeader(TLogHelper * pLogger, TFileStream * pStream, ULON
memset(&Header, 0xFE, sizeof(TMPQHeader));
if(FileStream_Read(pStream, pByteOffset, &Header, sizeof(TMPQHeader)))
{
- if(Header.dwID != ID_MPQ)
+ if(Header.dwID != g_dwMpqSignature)
{
pLogger->PrintMessage(_T("Read error - the data is not a MPQ header"));
nError = ERROR_FILE_CORRUPT;
@@ -4253,6 +4255,13 @@ int _tmain(int argc, TCHAR * argv[])
//
// Open all files from the command line
//
+ /*
+ SFILE_MARKERS Markers = { sizeof(SFILE_MARKERS) };
+ Markers.dwSignature = 'XHSC';
+ Markers.szHashTableKey = "(cash table)";
+ Markers.szBlockTableKey = "(clock table)";
+ SFileSetArchiveMarkers(&Markers);
+ */
for(int i = 1; i < argc; i++)
{