aboutsummaryrefslogtreecommitdiff
path: root/src/StormLib.h
diff options
context:
space:
mode:
authorLukas Bagaric <deaeod@gmail.com>2013-04-22 22:55:05 +0200
committerLukas Bagaric <deaeod@gmail.com>2013-04-22 22:55:05 +0200
commit2ab4cbfe957101aa96acb346e7ce1fe55ed8b683 (patch)
tree25ddfa1be579b170430590cc2c77f476134cf304 /src/StormLib.h
parent43033709ea78369d0fe86d1a014e0743ce8bd33b (diff)
AddFile and Compact callback now part of TMPQArchive
Signed-off-by: Lukas Bagaric <deaeod@gmail.com>
Diffstat (limited to 'src/StormLib.h')
-rw-r--r--src/StormLib.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/StormLib.h b/src/StormLib.h
index a355eb6..68bdac3 100644
--- a/src/StormLib.h
+++ b/src/StormLib.h
@@ -590,10 +590,10 @@ typedef struct _TMPQBlock
// Patch file information, preceding the sector offset table
typedef struct _TPatchInfo
{
- DWORD dwLength; // Length of patch info header, in bytes
- DWORD dwFlags; // Flags. 0x80000000 = MD5 (?)
- DWORD dwDataSize; // Uncompressed size of the patch file
- BYTE md5[0x10]; // MD5 of the entire patch file after decompression
+ DWORD dwLength; // Length of patch info header, in bytes
+ DWORD dwFlags; // Flags. 0x80000000 = MD5 (?)
+ DWORD dwDataSize; // Uncompressed size of the patch file
+ BYTE md5[0x10]; // MD5 of the entire patch file after decompression
// Followed by the sector table (variable length)
} TPatchInfo;
@@ -744,6 +744,12 @@ typedef struct _TMPQArchive
DWORD dwFileFlags2; // Flags for (attributes)
DWORD dwAttrFlags; // Flags for the (attributes) file, see MPQ_ATTRIBUTE_XXX
DWORD dwFlags; // See MPQ_FLAG_XXXXX
+
+ SFILE_ADDFILE_CALLBACK aAddFileCB; // Callback function for adding files
+ void * pvAddFileUserData; // User data thats passed to the callback
+
+ SFILE_COMPACT_CALLBACK aCompactCB; // Callback function for compacting the archive
+ void * pvCompactUserData; // User data thats passed to the callback
} TMPQArchive;
// File handle structure