From 2ab4cbfe957101aa96acb346e7ce1fe55ed8b683 Mon Sep 17 00:00:00 2001 From: Lukas Bagaric Date: Mon, 22 Apr 2013 22:55:05 +0200 Subject: AddFile and Compact callback now part of TMPQArchive Signed-off-by: Lukas Bagaric --- src/StormLib.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/StormLib.h') 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 -- cgit v1.2.3