diff options
author | Lopfest <lopfest@gmail.com> | 2016-02-20 23:59:56 +0100 |
---|---|---|
committer | Lopfest <lopfest@gmail.com> | 2016-02-20 23:59:56 +0100 |
commit | facdc62b433787326673a4db05aab76d75e1283f (patch) | |
tree | f76f4e3467e3fe909da8b4e5bc5962712642e493 /dep/CascLib/src/CascLib.h | |
parent | d11eb335c996b398f4f8bdb10558dfba9af637f4 (diff) | |
parent | 716c952cb9f7bc0f75308bb4a716cdfe7de17281 (diff) |
Merge remote-tracking branch 'upstream/6.x' into HEAD
Diffstat (limited to 'dep/CascLib/src/CascLib.h')
-rw-r--r-- | dep/CascLib/src/CascLib.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/dep/CascLib/src/CascLib.h b/dep/CascLib/src/CascLib.h index 330a4b2bb49..bad32eb2dba 100644 --- a/dep/CascLib/src/CascLib.h +++ b/dep/CascLib/src/CascLib.h @@ -39,7 +39,7 @@ extern "C" { #define CASC_STOR_XXXXX 0x00000001 // Not used // Values for CascOpenFile -#define CASC_FILE_XXXXX 0x00000001 // Not used +#define CASC_OPEN_BY_ENCODING_KEY 0x00000001 // The name is just the encoding key; skip ROOT file processing // Flags for file stream #define BASE_PROVIDER_FILE 0x00000000 // Base data source is a file @@ -103,7 +103,7 @@ extern "C" { #ifndef MD5_HASH_SIZE #define MD5_HASH_SIZE 0x10 -#define MD5_STRING_SIZE 0x21 +#define MD5_STRING_SIZE 0x20 #endif #ifndef SHA1_DIGEST_SIZE @@ -146,9 +146,7 @@ typedef struct _CASC_FIND_DATA { char szFileName[MAX_PATH]; // Full name of the found file char * szPlainName; // Plain name of the found file - ULONGLONG FileNameHash; // File name hash BYTE EncodingKey[MD5_HASH_SIZE]; // Encoding key - DWORD dwPackageIndex; // File package index (HOTS only) DWORD dwLocaleFlags; // Locale flags (WoW only) DWORD dwFileSize; // Size of the file @@ -184,6 +182,16 @@ HANDLE WINAPI CascFindFirstFile(HANDLE hStorage, const char * szMask, PCASC_FIND bool WINAPI CascFindNextFile(HANDLE hFind, PCASC_FIND_DATA pFindData); bool WINAPI CascFindClose(HANDLE hFind); +//----------------------------------------------------------------------------- +// GetLastError/SetLastError support for non-Windows platform + +#ifndef PLATFORM_WINDOWS + +int GetLastError(); +void SetLastError(int nError); + +#endif // PLATFORM_WINDOWS + #ifdef __cplusplus } // extern "C" #endif |