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

@@ -11,6 +11,7 @@
#include "core/rendering/screen.hpp" // Para Screen
#include "core/rendering/surface.hpp" // Para Surface
#include "core/rendering/surface_sprite.hpp" // Para SSprite
#include "core/resources/resource_list.hpp" // Para Resource::List::get()->getPrintWidth
#include "core/resources/resource_helper.hpp" // Para ResourceHelper
#include "utils/utils.hpp" // Para getFileName, stringToColor, printWithDots
@@ -75,7 +76,7 @@ auto Text::loadTextFile(const std::string& file_path) -> std::shared_ptr<File> {
line_read++;
};
printWithDots("Text File : ", getFileName(file_path), "[ LOADED ]");
printWithDots("Text File : ", getFileName(file_path), "[ LOADED ]", Resource::List::get()->getPrintWidth());
// Establece las coordenadas para cada caracter ascii de la cadena y su ancho
for (int i = 32; i < 128; ++i) {