Make extract progress be of the full file

This commit is contained in:
Pk11 committed 2020-10-30 00:06:24 -05:00
1 parent 4479bdb956
commit c20261794e
4 files changed
+31 -12

No files matched your search

+1
View File
@@ -219,6 +219,7 @@ void ScriptUtils::extractFile(const std::string &file, const std::string &input,
svcGetThreadPriority(&prio, CUR_THREAD_HANDLE);
thread = threadCreate((ThreadFunc)displayProgressBar, NULL, 64 * 1024, prio - 1, -2, false);
getExtractedSize(in, input);
extractArchive(in, input, out);
showProgressBar = false;
threadJoin(thread, U64_MAX);