aboutsummaryrefslogtreecommitdiff
path: root/test/StormTest.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <ladislav.zezula@avast.com>2022-05-12 15:44:15 +0200
committerLadislav Zezula <ladislav.zezula@avast.com>2022-05-12 15:44:15 +0200
commit4321c59d8431eaf72d7b36c047859b72bca02318 (patch)
tree2f7a46599df9b7526d3c92ce319c6aeb6954bd4f /test/StormTest.cpp
parent460354d98bc266507befe517f9f246d3b952abc9 (diff)
Added implementation of Srarctaft I BETA ADPCM decompression
Diffstat (limited to 'test/StormTest.cpp')
-rw-r--r--test/StormTest.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/StormTest.cpp b/test/StormTest.cpp
index 128cd6b..2e7389b 100644
--- a/test/StormTest.cpp
+++ b/test/StormTest.cpp
@@ -2559,6 +2559,17 @@ static DWORD TestArchive(
if(dwCrc32 != pFileData->dwCrc32)
Logger.PrintError("Warning: CRC32 error on %s", szFileName);
}
+
+#ifdef _DEBUG
+/*
+ FILE * fp = fopen("e:\\out_file.wav", "wb");
+ if(fp)
+ {
+ fwrite(pFileData->FileData, 1, pFileData->dwFileSize, fp);
+ fclose(fp);
+ }
+*/
+#endif
}
}
@@ -4331,7 +4342,8 @@ int _tmain(int argc, TCHAR * argv[])
for(int i = 2; i < argc; i++)
{
- TestArchive(argv[i], Bliz, 0, "staredit\\scenario.chk", NULL);
+// TestArchive(argv[i], Bliz, 0, "sound\\zerg\\advisor\\zaderr05.wav", NULL);
+ TestArchive(argv[i], Bliz, 0, "music\\trdyroom.wav", NULL);
}
//