mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-06 16:49:09 +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);
|
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,
|
const auto Write = [&](std::string_view name, std::size_t offset, std::size_t size,
|
||||||
bool decrypt = false, const Key::AESKey& key = {},
|
bool decrypt = false, const Key::AESKey& key = {},
|
||||||
const Key::AESKey& ctr = {}, std::size_t aes_seek_pos = 0) {
|
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);
|
emit ProgressUpdated(current_imported_size, total_imported_size, eta);
|
||||||
};
|
};
|
||||||
|
|
||||||
Common::ProgressCallbackWrapper wrapper(total_size);
|
Common::ProgressCallbackWrapper wrapper{total_size};
|
||||||
for (const auto& content : contents) {
|
for (const auto& content : contents) {
|
||||||
emit NextContent(count + 1, content, eta);
|
emit NextContent(count + 1, content, eta);
|
||||||
if (!execute_func(importer, content, wrapper.Wrap(Callback))) {
|
if (!execute_func(importer, content, wrapper.Wrap(Callback))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user