aboutsummaryrefslogtreecommitdiff
path: root/dep/CascLib/src/CascLib.h
diff options
context:
space:
mode:
authorNayd <dnpd.dd@gmail.com>2015-01-11 22:12:49 +0000
committerNayd <dnpd.dd@gmail.com>2015-01-11 23:02:19 +0000
commit31e3dc2e75459f681480ae09641f1087096dfd69 (patch)
tree70685fc84efd01d450f8bc06a4cb266e6478b694 /dep/CascLib/src/CascLib.h
parent8bbd9133d57fc34b77544cbdd59526ed9ccaa607 (diff)
Dep/CascLib: Update to https://github.com/ladislav-zezula/CascLib/commit/5d3789af3435534c288c2145e158d422651c7fe1
Closes #13866
Diffstat (limited to 'dep/CascLib/src/CascLib.h')
-rw-r--r--dep/CascLib/src/CascLib.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/dep/CascLib/src/CascLib.h b/dep/CascLib/src/CascLib.h
index a3960a558c2..330a4b2bb49 100644
--- a/dep/CascLib/src/CascLib.h
+++ b/dep/CascLib/src/CascLib.h
@@ -66,7 +66,7 @@ extern "C" {
#define CASC_LOCALE_UNKNOWN1 0x00000001
#define CASC_LOCALE_ENUS 0x00000002
#define CASC_LOCALE_KOKR 0x00000004
-#define CASC_LOCALE_UNKNOWN8 0x00000008
+#define CASC_LOCALE_RESERVED 0x00000008
#define CASC_LOCALE_FRFR 0x00000010
#define CASC_LOCALE_DEDE 0x00000020
#define CASC_LOCALE_ZHCN 0x00000040
@@ -81,6 +81,24 @@ extern "C" {
#define CASC_LOCALE_ITIT 0x00008000
#define CASC_LOCALE_PTPT 0x00010000
+#define CASC_LOCALE_BIT_ENUS 0x01
+#define CASC_LOCALE_BIT_KOKR 0x02
+#define CASC_LOCALE_DUAL_LANG 0x03
+#define CASC_LOCALE_BIT_FRFR 0x04
+#define CASC_LOCALE_BIT_DEDE 0x05
+#define CASC_LOCALE_BIT_ZHCN 0x06
+#define CASC_LOCALE_BIT_ESES 0x07
+#define CASC_LOCALE_BIT_ZHTW 0x08
+#define CASC_LOCALE_BIT_ENGB 0x09
+#define CASC_LOCALE_BIT_ENCN 0x0A
+#define CASC_LOCALE_BIT_ENTW 0x0B
+#define CASC_LOCALE_BIT_ESMX 0x0C
+#define CASC_LOCALE_BIT_RURU 0x0D
+#define CASC_LOCALE_BIT_PTBR 0x0E
+#define CASC_LOCALE_BIT_ITIT 0x0F
+#define CASC_LOCALE_BIT_PTPT 0x10
+
+
#define MAX_CASC_KEY_LENGTH 0x10 // Maximum length of the key (equal to MD5 hash)
#ifndef MD5_HASH_SIZE
@@ -110,6 +128,8 @@ typedef enum _CASC_STORAGE_INFO_CLASS
{
CascStorageFileCount,
CascStorageFeatures,
+ CascStorageGameInfo,
+ CascStorageGameBuild,
CascStorageInfoClassMax
} CASC_STORAGE_INFO_CLASS, *PCASC_STORAGE_INFO_CLASS;
@@ -148,7 +168,7 @@ void qsort_pointer_array(void ** base, size_t num, int (*compare)(const void *,
//-----------------------------------------------------------------------------
// Functions for storage manipulation
-bool WINAPI CascOpenStorage(const TCHAR * szDataPath, DWORD dwFlags, HANDLE * phStorage);
+bool WINAPI CascOpenStorage(const TCHAR * szDataPath, DWORD dwLocaleMask, HANDLE * phStorage);
bool WINAPI CascGetStorageInfo(HANDLE hStorage, CASC_STORAGE_INFO_CLASS InfoClass, void * pvStorageInfo, size_t cbStorageInfo, size_t * pcbLengthNeeded);
bool WINAPI CascCloseStorage(HANDLE hStorage);