Fix wrapper initialization

This commit is contained in:
Pengfei
2021-08-06 18:48:17 +08:00
parent be9e1386c3
commit 5b55f801f0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -480,7 +480,7 @@ bool NCCHContainer::DecryptToFile(std::shared_ptr<FileUtil::IOFile> dest_file,
written += sizeof(ExHeader_Header);
}
Common::ProgressCallbackWrapper wrapper(total_size);
Common::ProgressCallbackWrapper wrapper{total_size};
const auto Write = [&](std::string_view name, std::size_t offset, std::size_t size,
bool decrypt = false, const Key::AESKey& key = {},
const Key::AESKey& ctr = {}, std::size_t aes_seek_pos = 0) {
+1 -1
View File
@@ -39,7 +39,7 @@ void MultiJob::run() {
emit ProgressUpdated(current_imported_size, total_imported_size, eta);
};
Common::ProgressCallbackWrapper wrapper(total_size);
Common::ProgressCallbackWrapper wrapper{total_size};
for (const auto& content : contents) {
emit NextContent(count + 1, content, eta);
if (!execute_func(importer, content, wrapper.Wrap(Callback))) {