aboutsummaryrefslogtreecommitdiff
path: root/dep/CascLib/src/common/RootHandler.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-11-03 01:15:30 +0100
committerShauren <shauren.trinity@gmail.com>2022-11-03 01:15:30 +0100
commitc4564566b0b308f88f3664ec124a8557bdc278f0 (patch)
treef09d604f961e5d605556bc652aea5ec5d505d025 /dep/CascLib/src/common/RootHandler.h
parent722201e01c7809f1e85eb480499630a7d7d748b5 (diff)
Dep/CascLib: Update to ladislav-zezula/CascLib@136c6e05537bd7123620ddb28671d1f2cf060e0b
Diffstat (limited to 'dep/CascLib/src/common/RootHandler.h')
-rw-r--r--dep/CascLib/src/common/RootHandler.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/dep/CascLib/src/common/RootHandler.h b/dep/CascLib/src/common/RootHandler.h
index 4e56650b034..f9ea76b5f3a 100644
--- a/dep/CascLib/src/common/RootHandler.h
+++ b/dep/CascLib/src/common/RootHandler.h
@@ -62,6 +62,14 @@ struct TRootHandler
return NULL;
}
+ // Searches the file by file name
+ // nFileIndex - Index to the table
+ // szFileName - Pointer to the file name
+ virtual PCASC_CKEY_ENTRY GetFile(size_t /* nFileIndex */, char * /* szFileName */, size_t /* ccFileName */)
+ {
+ return NULL;
+ }
+
// Performs find-next-file operation
// pSearch - Pointer to the initialized search structure
// pFindData - Pointer to output structure that will contain the information
@@ -78,6 +86,19 @@ struct TRootHandler
return false;
}
+ // Copies all items from the given root handler to the new one
+ virtual size_t Copy(TRootHandler * /* pRoot */)
+ {
+ return 0;
+ }
+
+ // Returns the maximum file index
+ virtual size_t GetMaxFileIndex()
+ {
+ return 0;
+ }
+
+ // Returns the list of features
DWORD GetFeatures()
{
return dwFeatures;
@@ -100,8 +121,11 @@ struct TFileTreeRoot : public TRootHandler
PCASC_CKEY_ENTRY GetFile(struct TCascStorage * hs, const char * szFileName);
PCASC_CKEY_ENTRY GetFile(struct TCascStorage * hs, DWORD FileDataId);
+ PCASC_CKEY_ENTRY GetFile(size_t nFileIndex, char * /* szFileName */, size_t /* ccFileName */);
PCASC_CKEY_ENTRY Search(struct TCascSearch * pSearch, struct _CASC_FIND_DATA * pFindData);
bool GetInfo(PCASC_CKEY_ENTRY pCKeyEntry, struct _CASC_FILE_FULL_INFO * pFileInfo);
+ size_t Copy(TRootHandler * pRoot);
+ size_t GetMaxFileIndex();
protected: