From fd154940eddc54e556d6bfb5147cedbda4750c3e Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 6 Feb 2023 20:08:39 +0100 Subject: Dep/CascLib: Update to ladislav-zezula/CascLib@a5080b5794027a25d98aa6024b2bef17d06fe0ea --- dep/CascLib/src/common/FileTree.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'dep/CascLib/src/common/FileTree.h') diff --git a/dep/CascLib/src/common/FileTree.h b/dep/CascLib/src/common/FileTree.h index 38bc4e07e9f..69a2c15c496 100644 --- a/dep/CascLib/src/common/FileTree.h +++ b/dep/CascLib/src/common/FileTree.h @@ -82,6 +82,13 @@ class CASC_FILE_TREE // Retrieve the maximum FileDataId ever inserted DWORD GetNextFileDataId(); +#ifdef _DEBUG + void DumpFileDataIds(const char * szFileName) + { + FileDataIds.Dump(szFileName); + } +#endif + protected: PCASC_FILE_NODE InsertNew(PCASC_CKEY_ENTRY pCKeyEntry); @@ -95,7 +102,8 @@ class CASC_FILE_TREE CASC_ARRAY NodeTable; // Dynamic array that holds all CASC_FILE_NODEs CASC_ARRAY NameTable; // Dynamic array that holds all node names - CASC_ARRAY FileDataIds; // Dynamic array that maps FileDataId -> CASC_FILE_NODE + CASC_SPARSE_ARRAY FileDataIds; // Dynamic array that maps FileDataId -> CASC_FILE_NODE + //CASC_ARRAY FileDataIds; // Dynamic array that maps FileDataId -> CASC_FILE_NODE CASC_MAP NameMap; // Map of FileNameHash -> CASC_FILE_NODE size_t FileDataIdOffset; // If nonzero, this is the offset of the "FileDataId" field in the CASC_FILE_NODE -- cgit v1.2.3