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) {