diff options
author | Ladislav Zezula <E:\Ladik\Mail> | 2016-05-26 23:46:09 +0200 |
---|---|---|
committer | Ladislav Zezula <E:\Ladik\Mail> | 2016-05-26 23:46:09 +0200 |
commit | f1655f8afe2ef76d4906eb3e94dfd3c2b5241eb4 (patch) | |
tree | 496b3b70fd3613b7f3148b4ea81dda4708b21a37 /test | |
parent | b86b4e7f6385ced4b34c1c84785ac5dc19be660f (diff) |
+ Added support for an updated Somj2hM16 protection
Diffstat (limited to 'test')
-rw-r--r-- | test/StormTest.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/StormTest.cpp b/test/StormTest.cpp index 9a6f79d..f0456e7 100644 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -4456,7 +4456,11 @@ 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");
+/*
// Open the multi-file archive with wrong prefix to see how StormLib deals with it
if(nError == ERROR_SUCCESS)
nError = TestOpenArchive_WillFail("flat-file://streaming/model.MPQ.0");
@@ -4550,11 +4554,11 @@ int main(int argc, char * argv[]) // Compact the archive
if(nError == ERROR_SUCCESS)
nError = TestOpenArchive_CompactArchive("MPQ_2010_v3_expansion-locale-frFR.MPQ", "StormLibTest_CraftedMpq1_v3.mpq", true);
-*/
+
// Compact the archive
if(nError == ERROR_SUCCESS)
- nError = TestOpenArchive_CompactArchive("00000.pak", "00000.pak", false);
-/*
+ nError = TestOpenArchive_CompactArchive("MPQ_2016_v1_00000.pak", "MPQ_2016_v1_00000.pak", false);
+
// Open a MPQ (add custom user data to it)
if(nError == ERROR_SUCCESS)
nError = TestOpenArchive_CompactArchive("MPQ_2013_v4_SC2_EmptyMap.SC2Map", "StormLibTest_CraftedMpq2_v4.mpq", true);
|