mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-16 05:10:32 +01:00
Updatet build instructions
This commit is contained in:
11
README.md
11
README.md
@@ -15,17 +15,18 @@ $ make install
|
||||
3. Include StormLib in your project: `#include <StormLib.h>`
|
||||
4. Make sure you compile your project with `-lstorm -lz -lbz2`
|
||||
|
||||
### Windows (Visual Studio 2008)
|
||||
### Windows (Visual Studio 2022)
|
||||
0. Make sure you have the toolset for Visual Studio 2017 - Windows XP installed
|
||||
1. Download the latest release of StormLib
|
||||
2. Open the solution file `StormLib_vs08.sln` in Visual Studio 2008
|
||||
2. Open the solution file `StormLib.sln` in Visual Studio 2017/2019/2022
|
||||
3. Choose "Build / Batch Build" and select every build of "StormLib"
|
||||
4. Choose "Rebuild"
|
||||
5. The result libraries are in `.\bin\Win32` and `.\bin\x64`
|
||||
Note that you can also build the library using newer toolset, such as v143. to do that, you need to retarget the projects. Right-click on the solution, then choose "Retarget solution" and pick your desired toolset version.
|
||||
|
||||
### Windows (Visual Studio 2017 or 2019)
|
||||
0. Make sure you have SDK 10.0.17134.0 installed
|
||||
### Windows (Visual Studio 2008)
|
||||
1. Download the latest release of StormLib
|
||||
2. Open the solution file `StormLib_vs19.sln` in Visual Studio 2017/2019
|
||||
2. Open the solution file `StormLib_vs08.sln` in Visual Studio 2008
|
||||
3. Choose "Build / Batch Build" and select every build of "StormLib"
|
||||
4. Choose "Rebuild"
|
||||
5. The result libraries are in `.\bin\Win32` and `.\bin\x64`
|
||||
|
||||
@@ -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
|
||||
HANDLE hFile = NULL;
|
||||
HANDLE hMpq = NULL;
|
||||
|
||||
enum _SFileInfoClass v2 = (enum _SFileInfoClass)(11); // InfoClass
|
||||
i8 v3 = SFileFreeFileInfo(v1, v2); // $target
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user