diff options
Diffstat (limited to 'dep/CascLib/src/CascLib.h')
-rw-r--r-- | dep/CascLib/src/CascLib.h | 24 |
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); |