增加List处理功能
This commit is contained in:
+10
-2
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user