mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 00:38:58 +00:00
Fix wrapper initialization
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user