diff options
author | Ladislav Zezula <zezula@volny.cz> | 2024-10-21 09:13:10 +0200 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2024-10-21 09:13:10 +0200 |
commit | eb6fcfb482bfbb4ef8e8173740665cb8fa689555 (patch) | |
tree | 2b2b7ad280b4cc0974e4f9ea21f11b1489c8917a /test/StormTest.cpp | |
parent | 4c2fa7c7fd6d790f37c8833784df7a818ffba535 (diff) |
Updatet build instructions
Diffstat (limited to 'test/StormTest.cpp')
-rwxr-xr-x | test/StormTest.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/test/StormTest.cpp b/test/StormTest.cpp index 1b13b89..0312abb 100755 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -3787,15 +3787,19 @@ static DWORD TestReplaceFile(LPCTSTR szMpqPlainName, LPCTSTR szFilePlainName, LP static void Test_PlayingSpace()
{
-/*
- i8 v0_tmp[] = {5, 34, -58, 65, 113, -118, 76, 11, 40, 32, 27, 20, 83, 15, 22, 46, 25, -24, -77, -88, -70, -118, -58, 56, 55, -94, -69, 43, -87, -1, -70, 0,}; // pvFileInfo
- i8 * v0 = (i8 *)malloc(sizeof v0_tmp);
- memcpy(v0, v0_tmp, sizeof v0_tmp);
- i8 * v1 = v0; // pvFileInfo
-
- enum _SFileInfoClass v2 = (enum _SFileInfoClass)(11); // InfoClass
- i8 v3 = SFileFreeFileInfo(v1, v2); // $target
-*/
+ HANDLE hFile = NULL;
+ HANDLE hMpq = NULL;
+
+ if(SFileOpenArchive(_T("c:\\RedHero vs 7Com22 (Final Stage GOD).scx"), 0, 0, &hMpq))
+ {
+ SFileSetLocale(0x409);
+
+ if(SFileOpenFileEx(hMpq, "staredit\\scenario.chk", 0, &hFile))
+ {
+ SFileCloseFile(hFile);
+ }
+ SFileCloseArchive(hMpq);
+ }
}
//-----------------------------------------------------------------------------
|