aboutsummaryrefslogtreecommitdiff
path: root/storm_dll
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2024-11-02 09:32:37 +0100
committerLadislav Zezula <zezula@volny.cz>2024-11-02 09:32:37 +0100
commitcfc6d1f535de9858e8fd5e75b8773b82e5e19111 (patch)
tree8211659014dbfbbccbab8514991f4741c04a7e2f /storm_dll
parent2ec11ad1fd50098a789a9b477bb9c4240f569e7e (diff)
Fixed building of DLL
Diffstat (limited to 'storm_dll')
-rw-r--r--storm_dll/storm.def3
-rw-r--r--storm_dll/storm.h6
2 files changed, 7 insertions, 2 deletions
diff --git a/storm_dll/storm.def b/storm_dll/storm.def
index 8de88f5..2b8b08c 100644
--- a/storm_dll/storm.def
+++ b/storm_dll/storm.def
@@ -18,8 +18,7 @@ EXPORTS
StormGetArchiveName @275 ; 0x113
StormGetFileName @276 ; 0x114
-; StormSetLastError @465 ; 0x
+; StormSetLastError @465 ; 0x1d1
StormCompress @551 ; 0x227
StormDecompress @552 ; 0x228
- \ No newline at end of file
diff --git a/storm_dll/storm.h b/storm_dll/storm.h
index 75681b8..96cae9c 100644
--- a/storm_dll/storm.h
+++ b/storm_dll/storm.h
@@ -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);