From 8bd1207ccf7e2807adea021aa7bce9753691e9b2 Mon Sep 17 00:00:00 2001 From: modeco80 Date: Fri, 17 Jan 2025 23:29:16 -0500 Subject: [PATCH] tools/eupak: Remove "adding files to archive" progress It doesn't really show much of use, and in fact, slows down creation. --- src/tools/eupak/CreateCommand.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/tools/eupak/CreateCommand.cpp b/src/tools/eupak/CreateCommand.cpp index 3d0f9ed..1d0931a 100644 --- a/src/tools/eupak/CreateCommand.cpp +++ b/src/tools/eupak/CreateCommand.cpp @@ -203,19 +203,6 @@ namespace eupak { std::cout << "Writing a sector aligned package\n"; } - indicators::ProgressBar addProgress { - indicators::option::BarWidth { 50 }, - indicators::option::ForegroundColor { indicators::Color::green }, - indicators::option::MaxProgress { fileCount }, - indicators::option::ShowPercentage { true }, - indicators::option::ShowElapsedTime { true }, - indicators::option::ShowRemainingTime { true }, - - indicators::option::PrefixText { "Adding files to archive " } - }; - - indicators::show_console_cursor(false); - // TODO: use time to write in the header // also: is there any point to verbosity? could add archive written size ig @@ -234,8 +221,6 @@ namespace eupak { if(c == '/') c = '\\'; - addProgress.set_option(indicators::option::PostfixText { relativePathName + " (" + std::to_string(currFile + 1) + '/' + std::to_string(fileCount) + ")" }); - eio::pak::File file; eio::pak::FileData pakData = eio::pak::FileData::InitAsPath(ent.path()); @@ -258,12 +243,9 @@ namespace eupak { }); files.emplace_back(std::make_pair(relativePathName, std::move(file))); - addProgress.tick(); currFile++; } - indicators::show_console_cursor(true); - std::ofstream ofs(currentArgs.outputFile.string(), std::ofstream::binary); if(!ofs) {