Make extract progress be of the full file

This commit is contained in:
Pk11 2020-10-30 00:06:24 -05:00
commit c20261794e
4 changed files with 31 additions and 12 deletions

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