millorat printWithDots() i Resource::List per a calcular el nom de fitxer mes llarg correctament
Some checks failed
Release / build-windows (push) Has been cancelled
Release / create-release (push) Has been cancelled
Release / build-linux (push) Has been cancelled

This commit is contained in:
2025-11-23 22:18:41 +01:00
parent 1a6185b3aa
commit 59e6af62ba
10 changed files with 45 additions and 17 deletions

View File

@@ -320,11 +320,11 @@ auto getPath(const std::string& full_path) -> std::string {
}
// Imprime por pantalla una linea de texto de tamaño fijo rellena con puntos
void printWithDots(const std::string& text1, const std::string& text2, const std::string& text3) {
void printWithDots(const std::string& text1, const std::string& text2, const std::string& text3, size_t width) {
std::cout.setf(std::ios::left, std::ios::adjustfield);
std::cout << text1;
std::cout.width(50 - text1.length() - text3.length());
std::cout.width(static_cast<std::streamsize>(width - text1.length() - text3.length()));
std::cout.fill('.');
std::cout << text2;