aboutsummaryrefslogtreecommitdiff
path: root/src/FileStream.h
diff options
context:
space:
mode:
authorLadislav <Zezula>2014-01-03 18:56:23 +0100
committerLadislav <Zezula>2014-01-03 18:56:23 +0100
commit6cd009bc7cb60b4000e2267c7d100a3f0d9a42a0 (patch)
tree7e2b5dd6f85855c284067442fc6ebce5c95409f3 /src/FileStream.h
parent3a9a6ec46beaf839cfe4fe8b6a26e1ca5e2d0316 (diff)
+ Version 9.00 released
Diffstat (limited to 'src/FileStream.h')
-rw-r--r--src/FileStream.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FileStream.h b/src/FileStream.h
index 60f41d3..44beeed 100644
--- a/src/FileStream.h
+++ b/src/FileStream.h
@@ -70,7 +70,7 @@ typedef bool (*BLOCK_READ)(
bool bAvailable // true if the block is available
);
-typedef DWORD (*BLOCK_CHECK)(
+typedef bool (*BLOCK_CHECK)(
struct TFileStream * pStream, // Pointer to a block-oriented stream
ULONGLONG BlockOffset // Offset of the file to check
);
@@ -84,6 +84,7 @@ typedef void (*BLOCK_SAVEMAP)(
#define ID_FILE_BITMAP_FOOTER 0x33767470 // Signature of the file bitmap footer ('ptv3')
#define DEFAULT_BLOCK_SIZE 0x00004000 // Default size of the stream block
+#define DEFAULT_BUILD_NUMBER 10958 // Build number for newly created partial MPQs
typedef struct _PART_FILE_HEADER
{
@@ -182,6 +183,7 @@ struct TFileStream
ULONGLONG StreamSize; // Stream size (can be less than file size)
ULONGLONG StreamPos; // Stream position
+ DWORD BuildNumber; // Game build number
DWORD dwFlags; // Stream flags
// Followed by stream provider data, with variable length