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
+5 -1
View File
@@ -49,6 +49,10 @@ std::array<u8, 16> GetFileCTR(const std::string& path) {
}
} // namespace
void SDMCDecryptor::Reset(std::size_t total_size) {
quick_decryptor.Reset(total_size);
}
bool SDMCDecryptor::DecryptAndWriteFile(const std::string& source, const std::string& destination,
const QuickDecryptor::ProgressCallback& callback) {
return quick_decryptor.DecryptAndWriteFile(source, destination, callback);
@@ -83,7 +87,7 @@ std::vector<u8> SDMCDecryptor::DecryptFile(const std::string& source) const {
return data;
}
SDMCFile::SDMCFile() {}
SDMCFile::SDMCFile() = default;
SDMCFile::SDMCFile(std::string root_folder, const std::string& filename, const char openmode[],
int flags) {