增加List处理功能

This commit is contained in:
2025-09-04 14:30:09 +08:00
parent 80390e48a7
commit 4235742d87
13 changed files with 615 additions and 82 deletions
+10 -2
View File
@@ -30,6 +30,7 @@ enum ErrorCode
NPK_ERR_INVALID_STATE,
NPK_ERR_NEW_FAILED,
NPK_ERR_FILE_CREATE,
NPK_ERR_DUPLICATE_KEYNAME,
//Other errors
NPK_ERR_UNKNOWN
};
@@ -105,10 +106,17 @@ public:
class IFileList
{
public:
virtual bool loadListFromFile(const wchar_t* wszListFile, const char* prefix,
bool bNpkBase, bool bNpkName, bool bFileOffset, bool bFileSize, bool bFileCRC,
bool bEnableDuplicate) = 0;
virtual bool dumpToLocalFile(const wchar_t* wszListFile,
bool bNpkBase, bool bNpkName, bool bFileOffset, bool bFileSize, bool bFileCRC) = 0;
virtual bool mergeOtherListInto(const IFileList* sourceFileList, bool bEnableDuplicate) = 0;
virtual bool applyToLocalNPKFiles(const wchar_t* wszNPKBase) = 0;
virtual int32_t getFileCounts(void) const = 0;
virtual bool getFileItem(int32_t index, FileItemFullInfo* fileItemFullInfo) const = 0;
virtual void addFileNode(const FileItemFullInfo& fileItemFullInfo) = 0;
virtual void mergeOtherListInto(const IFileList* sourceFileList) = 0;
virtual bool getFileItem(const char* szKeyName, FileItemFullInfo* fileItemFullInfo) const = 0;
};
}