diff options
author | Shauren <shauren.trinity@gmail.com> | 2021-06-27 20:20:51 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-06-27 20:20:51 +0200 |
commit | b70f34b696c75dee9af1387d2e1536cd9edffa4b (patch) | |
tree | c53d89e5c84264d183cea463f6a214f5c0963911 /dep/CascLib/src/CascCommon.h | |
parent | 0bbf3f7300895008a37796f3d5be7e8f23c9a143 (diff) |
Dep/CascLib: Update to ladislav-zezula/CascLib@37a948bdb5f493b6a0959489baa07e1636002c3b
Diffstat (limited to 'dep/CascLib/src/CascCommon.h')
-rw-r--r-- | dep/CascLib/src/CascCommon.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dep/CascLib/src/CascCommon.h b/dep/CascLib/src/CascCommon.h index aa0aff876ce..cddd0a8ca0e 100644 --- a/dep/CascLib/src/CascCommon.h +++ b/dep/CascLib/src/CascCommon.h @@ -30,8 +30,10 @@ #include "common/Directory.h" #include "common/ListFile.h" #include "common/Csv.h" +#include "common/Mime.h" #include "common/Path.h" #include "common/RootHandler.h" +#include "common/Sockets.h" // Headers from Alexander Peslyak's MD5 implementation #include "md5/md5.h" @@ -58,8 +60,7 @@ #define CASC_MAGIC_FIND 0x444E494643534143 // 'CASCFIND' // For CASC_CDN_DOWNLOAD::Flags -#define CASC_CDN_FLAG_PORT1119 0x0001 // Use port 1119 -#define CASC_CDN_FORCE_DOWNLOAD 0x0002 // Force downloading the file even if in the cache +#define CASC_CDN_FORCE_DOWNLOAD 0x0001 // Force downloading the file even if in the cache //----------------------------------------------------------------------------- // In-memory structures @@ -101,7 +102,7 @@ typedef struct _CASC_INDEX typedef struct _CASC_INDEX_HEADER { USHORT IndexVersion; // 5 for index v 1.0, 7 for index version 2.0 - BYTE BucketIndex; // Should be the same as the first byte of the hex filename. + BYTE BucketIndex; // Should be the same as the first byte of the hex filename. BYTE StorageOffsetLength; // Length, in bytes, of the StorageOffset field in the EKey entry BYTE EncodedSizeLength; // Length, in bytes, of the EncodedSize in the EKey entry BYTE EKeyLength; // Length, in bytes, of the (trimmed) EKey in the EKey entry @@ -367,7 +368,7 @@ struct TCascFile DWORD bVerifyIntegrity:1; // If true, then the data are validated more strictly when read DWORD bDownloadFileIf:1; // If true, then the data will be downloaded from the online storage if missing DWORD bCloseFileStream:1; // If true, file stream needs to be closed during CascCloseFile - DWORD bOvercomeEncrypted:1; // If true, then CascReadFile will fill the part that is encrypted (and key was not found) with zeros + DWORD bOvercomeEncrypted:1; // If true, then CascReadFile will fill the part that is encrypted (and key was not found) with zeros DWORD bFreeCKeyEntries:1; // If true, dectructor will free the array of CKey entries ULONGLONG FileCacheStart; // Starting offset of the file cached area |