Skip to content

Commit

Permalink
Update Stormlib and LoadLibs
Browse files Browse the repository at this point in the history
  • Loading branch information
Warkdev authored and billy1arm committed Jan 15, 2021
1 parent c37808a commit fd0b1c0
Show file tree
Hide file tree
Showing 304 changed files with 41,626 additions and 3,133 deletions.
420 changes: 370 additions & 50 deletions StormLib/CMakeLists.txt

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions StormLib/README.md
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`

24 changes: 24 additions & 0 deletions StormLib/src/DllMain.c
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;
}
79 changes: 79 additions & 0 deletions StormLib/src/DllMain.def
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
114 changes: 114 additions & 0 deletions StormLib/src/DllMain.rc
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

Loading

0 comments on commit fd0b1c0

Please sign in to comment.