-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
304 changed files
with
41,626 additions
and
3,133 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# StormLib | ||
|
||
This is official repository for the StomLib library, an open-source project that can work with Blizzard MPQ archives. | ||
|
||
## Installation and basic usage | ||
### Linux | ||
1. Download latest release | ||
2. Install StormLib: | ||
``` | ||
$ cd <path-to-StormLib> | ||
$ cmake CMakeLists.txt | ||
$ make | ||
$ make install | ||
``` | ||
3. Include StormLib in your project: `#include <StormLib.h>` | ||
4. Make sure you compile your project with `-lstorm -lz -lbz2` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/*****************************************************************************/ | ||
/* DllMain.c Copyright (c) Ladislav Zezula 2006 */ | ||
/*---------------------------------------------------------------------------*/ | ||
/* Description: DllMain for the StormLib.dll library */ | ||
/*---------------------------------------------------------------------------*/ | ||
/* Date Ver Who Comment */ | ||
/* -------- ---- --- ------- */ | ||
/* 23.11.06 1.00 Lad The first version of DllMain.c */ | ||
/*****************************************************************************/ | ||
|
||
#define WIN32_LEAN_AND_MEAN | ||
#include <windows.h> | ||
|
||
//----------------------------------------------------------------------------- | ||
// DllMain | ||
|
||
BOOL WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved) | ||
{ | ||
UNREFERENCED_PARAMETER(hInst); | ||
UNREFERENCED_PARAMETER(dwReason); | ||
UNREFERENCED_PARAMETER(lpReserved); | ||
|
||
return TRUE; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
; | ||
; Export file for Windows | ||
; Copyright (c) 2007-2010 Ladislav Zezula | ||
; ladik@zezula.net | ||
; | ||
|
||
LIBRARY StormLib.dll | ||
|
||
EXPORTS | ||
|
||
SFileSetLocale | ||
SFileGetLocale | ||
|
||
SFileOpenArchive | ||
SFileCreateArchive | ||
SFileCreateArchive2 | ||
SFileFlushArchive | ||
SFileCloseArchive | ||
|
||
SFileAddListFile | ||
|
||
SFileSetCompactCallback | ||
SFileCompactArchive | ||
|
||
SFileGetMaxFileCount | ||
SFileSetMaxFileCount | ||
|
||
SFileGetAttributes | ||
SFileSetAttributes | ||
SFileUpdateFileAttributes | ||
|
||
SFileOpenPatchArchive | ||
SFileIsPatchedArchive | ||
|
||
SFileOpenFileEx | ||
SFileGetFileSize | ||
SFileSetFilePointer | ||
SFileReadFile | ||
SFileCloseFile | ||
|
||
SFileHasFile | ||
SFileGetFileName | ||
SFileGetFileInfo | ||
|
||
SFileExtractFile | ||
|
||
SFileVerifyFile | ||
SFileVerifyRawData | ||
SFileVerifyArchive | ||
|
||
SFileFindFirstFile | ||
SFileFindNextFile | ||
SFileFindClose | ||
|
||
SListFileFindFirstFile | ||
SListFileFindNextFile | ||
SListFileFindClose | ||
|
||
SFileEnumLocales | ||
|
||
SFileCreateFile | ||
SFileWriteFile | ||
SFileFinishFile | ||
SFileAddFileEx | ||
SFileAddFile | ||
SFileAddWave | ||
SFileRemoveFile | ||
SFileRenameFile | ||
SFileSetFileLocale | ||
SFileSetDataCompression | ||
SFileSetAddFileCallback | ||
|
||
SCompImplode | ||
SCompExplode | ||
SCompCompress | ||
SCompDecompress | ||
|
||
GetLastError=Kernel32.GetLastError | ||
SetLastError=Kernel32.SetLastError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
// Microsoft Visual C++ generated resource script. | ||
// | ||
#include "resource.h" | ||
|
||
#define APSTUDIO_READONLY_SYMBOLS | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Generated from the TEXTINCLUDE 2 resource. | ||
// | ||
#include "afxres.h" | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
#undef APSTUDIO_READONLY_SYMBOLS | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// Neutral resources | ||
|
||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU) | ||
#ifdef _WIN32 | ||
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL | ||
#pragma code_page(1250) | ||
#endif //_WIN32 | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Version | ||
// | ||
|
||
VS_VERSION_INFO VERSIONINFO | ||
FILEVERSION 9,22,0,3 | ||
PRODUCTVERSION 9,22,0,3 | ||
FILEFLAGSMASK 0x17L | ||
#ifdef _DEBUG | ||
FILEFLAGS 0x1L | ||
#else | ||
FILEFLAGS 0x0L | ||
#endif | ||
FILEOS 0x4L | ||
FILETYPE 0x0L | ||
FILESUBTYPE 0x0L | ||
BEGIN | ||
BLOCK "StringFileInfo" | ||
BEGIN | ||
BLOCK "040504b0" | ||
BEGIN | ||
VALUE "Comments", "http://www.zezula.net/mpq.html" | ||
VALUE "FileDescription", "StormLib library for reading Blizzard MPQ archives" | ||
VALUE "FileVersion", "9, 22, 0, 3\0" | ||
VALUE "InternalName", "StormLib" | ||
VALUE "LegalCopyright", "Copyright (c) 2014 - 2020 Ladislav Zezula" | ||
VALUE "OriginalFilename", "StormLib.dll" | ||
VALUE "ProductName", "StormLib" | ||
VALUE "ProductVersion", "9, 22, 0, 3\0" | ||
END | ||
END | ||
BLOCK "VarFileInfo" | ||
BEGIN | ||
VALUE "Translation", 0x405, 1200 | ||
END | ||
END | ||
|
||
#endif // Neutral resources | ||
///////////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// Czech resources | ||
|
||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CSY) | ||
#ifdef _WIN32 | ||
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT | ||
#pragma code_page(1250) | ||
#endif //_WIN32 | ||
|
||
#ifdef APSTUDIO_INVOKED | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// TEXTINCLUDE | ||
// | ||
|
||
2 TEXTINCLUDE | ||
BEGIN | ||
"#include ""afxres.h""\r\n" | ||
"\0" | ||
END | ||
|
||
3 TEXTINCLUDE | ||
BEGIN | ||
"\r\n" | ||
"\0" | ||
END | ||
|
||
1 TEXTINCLUDE | ||
BEGIN | ||
"resource.h\0" | ||
END | ||
|
||
#endif // APSTUDIO_INVOKED | ||
|
||
#endif // Czech resources | ||
///////////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
|
||
#ifndef APSTUDIO_INVOKED | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Generated from the TEXTINCLUDE 3 resource. | ||
// | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
#endif // not APSTUDIO_INVOKED | ||
|
Oops, something went wrong.