From eb6fcfb482bfbb4ef8e8173740665cb8fa689555 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Mon, 21 Oct 2024 09:13:10 +0200 Subject: Updatet build instructions --- test/StormTest.cpp | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'test/StormTest.cpp') 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); + } } //----------------------------------------------------------------------------- -- cgit v1.2.3