Merge pull request #58520 from Calinou/pckpacker-verbose-print-for-every-file

This commit is contained in:
Rémi Verschelde 2022-02-25 12:20:50 +01:00 committed by GitHub
commit 6fbfb27c0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -257,10 +257,7 @@ Error PCKPacker::flush(bool p_verbose) {
count += 1; count += 1;
const int file_num = files.size(); const int file_num = files.size();
if (p_verbose && (file_num > 0)) { if (p_verbose && (file_num > 0)) {
if (count % 100 == 0) { print_line(vformat("[%d/%d - %d%%] PCKPacker flush: %s -> %s", count, file_num, float(count) / file_num * 100, files[i].src_path, files[i].path));
printf("%i/%i (%.2f)\r", count, file_num, float(count) / file_num * 100);
fflush(stdout);
}
} }
} }