summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-25 12:20:50 +0100
committerGitHub <noreply@github.com>2022-02-25 12:20:50 +0100
commit6fbfb27c0c8354155074ade09d3e7d58457260f4 (patch)
treef31e04c35f9a8def10ff19e5ac591b0b98adfa50
parentbe52c5bf6ee7f8e1181f42f7c68fca9f8aaaa2b6 (diff)
parent8e57e5dc6a22d3e114816be3806c7499824003df (diff)
Merge pull request #58520 from Calinou/pckpacker-verbose-print-for-every-file
-rw-r--r--core/io/pck_packer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/io/pck_packer.cpp b/core/io/pck_packer.cpp
index 272ace3438..b3bf0cff2d 100644
--- a/core/io/pck_packer.cpp
+++ b/core/io/pck_packer.cpp
@@ -257,10 +257,7 @@ Error PCKPacker::flush(bool p_verbose) {
count += 1;
const int file_num = files.size();
if (p_verbose && (file_num > 0)) {
- if (count % 100 == 0) {
- printf("%i/%i (%.2f)\r", count, file_num, float(count) / file_num * 100);
- fflush(stdout);
- }
+ 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));
}
}