tools/eupak: Remove "adding files to archive" progress

It doesn't really show much of use, and in fact, slows down creation.
This commit is contained in:
Lily Tsuru 2025-01-17 23:29:16 -05:00
parent 2ab1120b39
commit 8bd1207ccf

View file

@ -203,19 +203,6 @@ namespace eupak {
std::cout << "Writing a sector aligned package\n"; 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 // TODO: use time to write in the header
// also: is there any point to verbosity? could add archive written size ig // also: is there any point to verbosity? could add archive written size ig
@ -234,8 +221,6 @@ namespace eupak {
if(c == '/') if(c == '/')
c = '\\'; c = '\\';
addProgress.set_option(indicators::option::PostfixText { relativePathName + " (" + std::to_string(currFile + 1) + '/' + std::to_string(fileCount) + ")" });
eio::pak::File file; eio::pak::File file;
eio::pak::FileData pakData = eio::pak::FileData::InitAsPath(ent.path()); 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))); files.emplace_back(std::make_pair(relativePathName, std::move(file)));
addProgress.tick();
currFile++; currFile++;
} }
indicators::show_console_cursor(true);
std::ofstream ofs(currentArgs.outputFile.string(), std::ofstream::binary); std::ofstream ofs(currentArgs.outputFile.string(), std::ofstream::binary);
if(!ofs) { if(!ofs) {