diff options
author | unknown <E:\Ladik\Mail> | 2015-04-01 06:52:50 +0200 |
---|---|---|
committer | unknown <E:\Ladik\Mail> | 2015-04-01 06:52:50 +0200 |
commit | 93370897471cb7bff861f9e961ff36e6ce46a5e8 (patch) | |
tree | 2e650adc65630f70a76afe4f4e7647849c2ce5b2 /test/StormTest.cpp | |
parent | e5b9f5132a9010a36db81788e10bb1be07ccf410 (diff) |
+ Better handling of MPQs corrupted by yet another silly MPQ protector
Diffstat (limited to 'test/StormTest.cpp')
-rw-r--r-- | test/StormTest.cpp | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/test/StormTest.cpp b/test/StormTest.cpp index 48beea5..1234722 100644 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -177,6 +177,18 @@ static const char * PatchList_SC2_32283[] = NULL }; +static const char * PatchList_SC2_34644[] = +{ + "MPQ_2013_v4_Base1.SC2Data", + "s2-update-base-23258.MPQ", + "s2-update-base-24540.MPQ", + "s2-update-base-26147.MPQ", + "s2-update-base-28522.MPQ", + "s2-update-base-32384.MPQ", + "s2-update-base-34644.MPQ", + NULL +}; + static const char * PatchList_SC2_32283_enGB[] = { "MPQ_2013_v4_enGB.SC2Data", @@ -4114,6 +4126,10 @@ int main(int argc, char * argv[]) // Open an Warcraft III map whose "(attributes)" file has (BlockTableSize-1) entries if(nError == ERROR_SUCCESS) nError = TestOpenArchive("MPQ_2014_v1_AttributesOneEntryLess.w3x"); +*/ + // Open an Warcraft III map whose "(attributes)" file has (BlockTableSize-1) entries + if(nError == ERROR_SUCCESS) + nError = TestOpenArchive("2.1.w3x"); // Open a MPQ archive v 3.0 if(nError == ERROR_SUCCESS) @@ -4169,6 +4185,10 @@ int main(int argc, char * argv[]) // Open a patched archive if(nError == ERROR_SUCCESS) + nError = TestOpenArchive_Patched(PatchList_SC2_34644, "TriggerLibs\\GameData\\GameData.galaxy", 2); + + // Open a patched archive + if(nError == ERROR_SUCCESS) nError = TestOpenArchive_Patched(PatchList_SC2_32283_enGB, "LocalizedData\\GameHotkeys.txt", 6); // Open a patched archive @@ -4198,7 +4218,7 @@ int main(int argc, char * argv[]) // Check archive signature if(nError == ERROR_SUCCESS) nError = TestOpenArchive_VerifySignature("MPQ_1999_v1_WeakSignature.exe", "War2Patch_202.exe"); -*/ + if(nError == ERROR_SUCCESS) nError = TestOpenArchive_VerifySignature("MPQ_2003_v1_WeakSignatureEmpty.exe", "WoW-1.2.3.4211-enUS-patch.exe"); |