Fix DLCs not imported correctly, fix progress not reported correctly

This commit is contained in:
zhupengfei
2019-10-04 15:45:39 +08:00
parent 2efa44f751
commit cd5eccd32a
6 changed files with 61 additions and 22 deletions
+8
View File
@@ -41,6 +41,14 @@ public:
*/
std::vector<u8> DecryptFile(const std::string& source) const;
/**
* Marks the beginning of a new content, resetting imported_size counter, and setting an new
* total_size for the next content.
* This doesn't affect at all how the contents will be imported, but will make sure the callback
* is properly invoked.
*/
void Reset(std::size_t total_size);
private:
std::string root_folder;
QuickDecryptor quick_decryptor;