millorat printWithDots() i Resource::List per a calcular el nom de fitxer mes llarg correctament
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
#include <utility>
|
||||
#include <vector> // Para vector
|
||||
|
||||
#include "utils/utils.hpp" // Para getFileName, ColorRGB, printWithDots
|
||||
#include "core/resources/resource_list.hpp" // Para Resource::List::get()->getPrintWidth
|
||||
#include "utils/utils.hpp" // Para getFileName, ColorRGB, printWithDots
|
||||
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include "external/stb_image.h" // para stbi_failure_reason, stbi_image_free
|
||||
@@ -51,7 +52,7 @@ auto Texture::loadFromFile(const std::string& file_path) -> bool {
|
||||
std::cerr << "Error: Fichero no encontrado " << getFileName(file_path) << '\n';
|
||||
throw std::runtime_error("Fichero no encontrado: " + getFileName(file_path));
|
||||
}
|
||||
printWithDots("Image : ", getFileName(file_path), "[ LOADED ]");
|
||||
printWithDots("Image : ", getFileName(file_path), "[ LOADED ]", Resource::List::get()->getPrintWidth());
|
||||
|
||||
int pitch;
|
||||
SDL_PixelFormat pixel_format;
|
||||
|
||||
Reference in New Issue
Block a user