diff options
author | Ladislav Zezula <zezula@volny.cz> | 2020-12-13 12:32:25 +0100 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2020-12-13 12:32:25 +0100 |
commit | 383e1572eecafdfe4f92ddad7a4bece069e12f38 (patch) | |
tree | 9c419d10e4cb4e2e569155f91cc93a7fdec62efc /src/StormLib.h | |
parent | 866269d740b32cf209e5188c5269c4118f8be07b (diff) |
Added support for amternative MPQ markers
Diffstat (limited to 'src/StormLib.h')
-rw-r--r-- | src/StormLib.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/StormLib.h b/src/StormLib.h index 4d9066d..145cf58 100644 --- a/src/StormLib.h +++ b/src/StormLib.h @@ -924,6 +924,14 @@ typedef struct _SFILE_CREATE_MPQ } SFILE_CREATE_MPQ, *PSFILE_CREATE_MPQ; +typedef struct _SFILE_MARKERS +{ + DWORD dwSize; // Size of this structure, in bytes + DWORD dwSignature; // Alternate MPQ header marker + const char * szHashTableKey; // Replacement for "(hash table)" + const char * szBlockTableKey; // Replacement for "(block table)" +} SFILE_MARKERS, *PSFILE_MARKERS; + //----------------------------------------------------------------------------- // TMPQBits support - functions @@ -979,6 +987,11 @@ typedef bool (WINAPI * SFILEREADFILE)(HANDLE, void *, DWORD, LPDWORD, LPOVERLAP //----------------------------------------------------------------------------- // Functions for manipulation with StormLib global flags +// Alternate marker support. This is for MPQs masked as DLLs (*.asi), which +// patch Storm.dll at runtime. Call before SFileOpenArchive +bool WINAPI SFileSetArchiveMarkers(PSFILE_MARKERS pMarkers); + +// Call before SFileOpenFileEx LCID WINAPI SFileGetLocale(); LCID WINAPI SFileSetLocale(LCID lcNewLocale); |