aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLadislav Zezula <E:\Ladik\Mail>2016-05-27 16:50:50 +0200
committerLadislav Zezula <E:\Ladik\Mail>2016-05-27 16:50:50 +0200
commit47b6b6eb4addd82a89d6bcd8fa92f9c0a09a5781 (patch)
tree5fb9c92f6352c9275d27d6ebb9aee87e20c75151 /test
parentf1655f8afe2ef76d4906eb3e94dfd3c2b5241eb4 (diff)
+ Support for MPQs that have invalid (and ignored) flags in the block table
+ Support for MPQs that have malformed block indexes (0x8000xxxx or 0x4000xxxx)
Diffstat (limited to 'test')
-rw-r--r--test/StormTest.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/test/StormTest.cpp b/test/StormTest.cpp
index f0456e7..2d73bd9 100644
--- a/test/StormTest.cpp
+++ b/test/StormTest.cpp
@@ -4273,11 +4273,11 @@ int main(int argc, char * argv[])
// Not a test, but rather a tool for creating links to duplicated files
// if(nError == ERROR_SUCCESS)
// nError = FindFilePairs(ForEachFile_CreateArchiveLink, "2004 - WoW\\06080", "2004 - WoW\\06299");
-
- // Search all testing archives and verify their SHA1 hash
-// if(nError == ERROR_SUCCESS)
-// nError = FindFiles(ForEachFile_VerifyFileChecksum, szMpqSubDir);
/*
+ // Search all testing archives and verify their SHA1 hash
+ if(nError == ERROR_SUCCESS)
+ nError = FindFiles(ForEachFile_VerifyFileChecksum, szMpqSubDir);
+
// Test sparse compression
if(nError == ERROR_SUCCESS)
nError = TestSparseCompression();
@@ -4456,10 +4456,17 @@ int main(int argc, char * argv[])
// Open another protected map
if(nError == ERROR_SUCCESS)
nError = TestOpenArchive("MPQ_2016_v1_ProtectedMap_HashOffsIsZero.w3x");
-*/
+
// Something like Somj 2.0
if(nError == ERROR_SUCCESS)
nError = TestOpenArchive("MPQ_2016_v1_ProtectedMap_Somj2.w3x");
+
+ // Protector from China (2016-05-27)
+ if(nError == ERROR_SUCCESS)
+ nError = TestOpenArchive("MPQ_2016_v1_WME4_4.w3x");
+*/
+ if(nError == ERROR_SUCCESS)
+ nError = TestOpenArchive("MPQ_2016_v1_AnotherProtectedMap.w3x");
/*
// Open the multi-file archive with wrong prefix to see how StormLib deals with it
if(nError == ERROR_SUCCESS)