11 #ifndef __ROOT_HANDLER_H__
12 #define __ROOT_HANDLER_H__
17 #define CASC_MNDX_ROOT_SIGNATURE 0x58444E4D // 'MNDX'
18 #define CASC_DIABLO3_ROOT_SIGNATURE 0x8007D0C4
19 #define CASC_OVERWATCH_ROOT_SIGNATURE 0x35444D23 // '#MD5'
21 #define ROOT_FLAG_HAS_NAMES 0x00000001 // The root file contains file names
23 #define DUMP_LEVEL_ROOT_FILE 1 // Dump root file
24 #define DUMP_LEVEL_ENCODING_FILE 2 // Dump root file + encoding file
25 #define DUMP_LEVEL_INDEX_ENTRIES 3 // Dump root file + encoding file + index entries
32 const char * szFileName,
50 const char * szFileName
58 const TCHAR * szListFile,
88 #endif // __ROOT_HANDLER_H__
LPBYTE RootHandler_GetKey(TRootHandler *pRootHandler, const char *szFileName)
Definition: RootHandler.cpp:44
DWORD * PDWORD
Definition: CascPort.h:151
LPBYTE(* ROOT_SEARCH)(struct TRootHandler *pRootHandler, struct _TCascSearch *pSearch, PDWORD PtrFileSize, PDWORD PtrLocaleFlags)
Definition: RootHandler.h:36
DWORD dwRootFlags
Definition: RootHandler.h:75
Definition: RootHandler.h:66
ROOT_GETKEY GetKey
Definition: RootHandler.h:71
ROOT_DUMP Dump
Definition: RootHandler.h:72
ROOT_INSERT Insert
Definition: RootHandler.h:68
void(* ROOT_ENDSEARCH)(struct TRootHandler *pRootHandler, struct _TCascSearch *pSearch)
Definition: RootHandler.h:43
char TCHAR
Definition: CascPort.h:148
LPBYTE(* ROOT_GETKEY)(struct TRootHandler *pRootHandler, const char *szFileName)
Definition: RootHandler.h:48
BYTE * LPBYTE
Definition: CascPort.h:152
Definition: DumpContext.h:21
void RootHandler_Dump(struct _TCascStorage *hs, LPBYTE pbRootHandler, DWORD cbRootHandler, const TCHAR *szNameFormat, const TCHAR *szListFile, int nDumpLevel)
Definition: RootHandler.cpp:53
Definition: CascCommon.h:186
void RootHandler_Close(TRootHandler *pRootHandler)
Definition: RootHandler.cpp:71
ROOT_SEARCH Search
Definition: RootHandler.h:69
Definition: CascCommon.h:261
ROOT_ENDSEARCH EndSearch
Definition: RootHandler.h:70
unsigned int DWORD
Definition: CascPort.h:139
int(* ROOT_INSERT)(struct TRootHandler *pRootHandler, const char *szFileName, LPBYTE pbEncodingKey)
Definition: RootHandler.h:30
LPBYTE RootHandler_Search(TRootHandler *pRootHandler, struct _TCascSearch *pSearch, PDWORD PtrFileSize, PDWORD PtrLocaleFlags)
Definition: RootHandler.cpp:26
void(* ROOT_CLOSE)(struct TRootHandler *pRootHandler)
Definition: RootHandler.h:62
void(* ROOT_DUMP)(struct _TCascStorage *hs, TDumpContext *dc, LPBYTE pbRootHandler, DWORD cbRootHandler, const TCHAR *szListFile, int nDumpLevel)
Definition: RootHandler.h:53
ROOT_CLOSE Close
Definition: RootHandler.h:73
int RootHandler_Insert(TRootHandler *pRootHandler, const char *szFileName, LPBYTE pbEncodingKey)
Definition: RootHandler.cpp:18
void RootHandler_EndSearch(TRootHandler *pRootHandler, struct _TCascSearch *pSearch)
Definition: RootHandler.cpp:35