aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLadislav Zezula <ladislav.zezula@avg.com>2015-10-07 15:59:30 +0200
committerLadislav Zezula <ladislav.zezula@avg.com>2015-10-07 15:59:30 +0200
commit99459abebd5f4610536edff7e6c7146086feefa3 (patch)
treead8ec5b69d242b402718fc3fa4cd3edc09610fd1 /src
parent5a943c56fc7e9570821a0585a5b2fbacb8eac466 (diff)
+ Added support for an archaic file flag 0x10000000
Diffstat (limited to 'src')
-rw-r--r--src/SFileOpenArchive.cpp2
-rw-r--r--src/StormLib.h5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/SFileOpenArchive.cpp b/src/SFileOpenArchive.cpp
index 9ed74b4..a951d39 100644
--- a/src/SFileOpenArchive.cpp
+++ b/src/SFileOpenArchive.cpp
@@ -428,7 +428,7 @@ bool WINAPI SFileOpenArchive(
if(pFileEntry != NULL)
{
// Just remember that the archive is weak-signed
- assert(pFileEntry->dwFlags == MPQ_FILE_EXISTS);
+ assert((pFileEntry->dwFlags & MPQ_FILE_EXISTS) != 0);
ha->dwFileFlags3 = pFileEntry->dwFlags;
}
diff --git a/src/StormLib.h b/src/StormLib.h
index 0f0f2a5..8c3f6f9 100644
--- a/src/StormLib.h
+++ b/src/StormLib.h
@@ -213,11 +213,11 @@ extern "C" {
#define MPQ_FILE_DELETE_MARKER 0x02000000 // File is a deletion marker. Used in MPQ patches, indicating that the file no longer exists.
#define MPQ_FILE_SECTOR_CRC 0x04000000 // File has checksums for each sector.
// Ignored if file is not compressed or imploded.
-
-#define MPQ_FILE_COMPRESS_MASK 0x0000FF00 // Mask for a file being compressed
+#define MPQ_FILE_SIGNATURE 0x10000000 // Present on STANDARD.SNP\(signature). The only occurence ever observed
#define MPQ_FILE_EXISTS 0x80000000 // Set if file exists, reset when the file was deleted
#define MPQ_FILE_REPLACEEXISTING 0x80000000 // Replace when the file exist (SFileAddFile)
+#define MPQ_FILE_COMPRESS_MASK 0x0000FF00 // Mask for a file being compressed
#define MPQ_FILE_EXISTS_MASK 0xF00000FF // These must be either zero or MPQ_FILE_EXISTS
#define MPQ_FILE_VALID_FLAGS (MPQ_FILE_IMPLODE | \
@@ -228,6 +228,7 @@ extern "C" {
MPQ_FILE_SINGLE_UNIT | \
MPQ_FILE_DELETE_MARKER | \
MPQ_FILE_SECTOR_CRC | \
+ MPQ_FILE_SIGNATURE | \
MPQ_FILE_EXISTS)
// Compression types for multiple compressions