mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-24 00:06:17 +01:00
Merge pull request #367 from ladislav-zezula/LZ_FileNameSafe
Lz file name safe
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
StormLib history
|
||||
================
|
||||
|
||||
Version 9.30
|
||||
|
||||
- Added functions for conversions between file names and safe operating system file names
|
||||
|
||||
Version 9.11
|
||||
|
||||
- Fixed bug in processing HET table.
|
||||
@@ -34,13 +38,13 @@
|
||||
- Updated support for protected maps from Warcraft III
|
||||
|
||||
Version 7.11
|
||||
|
||||
|
||||
- Support for MPQs v 3.0 (WOW-Cataclysm BETA)
|
||||
- StormLib now deals properly with files that have MPQ_SECTOR_CHECKSUM missing,
|
||||
but have sector checksum entry present in the sector offset table
|
||||
|
||||
Version 7.10
|
||||
|
||||
|
||||
- Support for partial MPQs ("interface.MPQ.part")
|
||||
- The only operation that is externally allowed to do with internal files
|
||||
("(listfile)", "(attributes)" and "(signature)") is reading. Attempt to modify any of the file
|
||||
@@ -48,7 +52,7 @@
|
||||
- Fixed memory leak that has occured when writing more than one sector to the file at once
|
||||
|
||||
Version 7.01
|
||||
|
||||
|
||||
- Support for adding files from memory
|
||||
- Fixed improper validation of handles to MPQ file and MPQ archive
|
||||
- Fixed bug where StormLib didn't save CRC32 of the file when added to archive
|
||||
|
||||
@@ -70,6 +70,9 @@ EXPORTS
|
||||
SFileSetDataCompression
|
||||
SFileSetAddFileCallback
|
||||
|
||||
SMemUTF8ToFileName
|
||||
SMemFileNameToUTF8
|
||||
|
||||
SCompImplode
|
||||
SCompExplode
|
||||
SCompCompress
|
||||
|
||||
@@ -18,8 +18,7 @@ EXPORTS
|
||||
StormGetArchiveName @275 ; 0x113
|
||||
StormGetFileName @276 ; 0x114
|
||||
|
||||
; StormSetLastError @465 ; 0x
|
||||
; StormSetLastError @465 ; 0x1d1
|
||||
|
||||
StormCompress @551 ; 0x227
|
||||
StormDecompress @552 ; 0x228
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
// will not conflict with other MPQ tools.
|
||||
#ifdef STORM_ALTERNATE_NAMES
|
||||
#define SFILE(Name) Storm##Name
|
||||
#define SMEM(Name) Storm##Name
|
||||
#define SCOMP(Name) Storm##Name
|
||||
#else
|
||||
#define SFILE(Name) SFile##Name
|
||||
#define SMEM(Name) SMem##Name
|
||||
#define SCOMP(Name) SComp##Name
|
||||
#endif
|
||||
|
||||
@@ -50,6 +52,10 @@ LCID WINAPI SFILE(SetLocale)(LCID nNewLocale);
|
||||
BOOL WINAPI SFILE(GetBasePath)(LPCSTR lpBuffer, DWORD dwBufferLength);
|
||||
BOOL WINAPI SFILE(SetBasePath)(LPCSTR lpNewBasePath);
|
||||
|
||||
// File name safe functions
|
||||
BOOL WINAPI SMEM(UTF8ToFileName)(LPTSTR szBuffer, size_t ccBuffer, const void * lpString, const void * lpStringEnd, DWORD dwFlags, size_t * pOutLength);
|
||||
BOOL WINAPI SMEM(FileNameToUTF8)(void * lpBuffer, size_t ccBuffer, const TCHAR * szString, const TCHAR * szStringEnd, DWORD dwFlags, size_t * pOutLength);
|
||||
|
||||
// Storm (de)compression functions
|
||||
BOOL WINAPI SCOMP(Compress) (char * pbOutBuffer, int * pdwOutLength, char * pbInBuffer, int dwInLength, int uCmp, int uCmpType, int nCmpLevel);
|
||||
BOOL WINAPI SCOMP(Decompress)(char * pbOutBuffer, int * pdwOutLength, char * pbInBuffer, int dwInLength);
|
||||
|
||||
Reference in New Issue
Block a user