aboutsummaryrefslogtreecommitdiff
path: root/dep/CascLib/src/CascLib.h
diff options
context:
space:
mode:
Diffstat (limited to 'dep/CascLib/src/CascLib.h')
-rw-r--r--dep/CascLib/src/CascLib.h16
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