afegit el namespace Logger
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "sprite.hpp" // Para Sprite
|
||||
#include "texture.hpp" // Para Texture
|
||||
#include "utils.hpp" // Para getFileName, printWithDots
|
||||
#include "ui/logger.hpp"
|
||||
|
||||
// Constructor
|
||||
Text::Text(const std::shared_ptr<Texture>& texture, const std::string& text_file) {
|
||||
@@ -419,8 +420,8 @@ auto Text::loadFile(const std::string& file_path) -> std::shared_ptr<Text::File>
|
||||
line_read++;
|
||||
};
|
||||
|
||||
Logger::dots("Text File : ", getFileName(file_path), "[ LOADED ]");
|
||||
// Cierra el fichero si se usó
|
||||
printWithDots("Text File : ", getFileName(file_path), "[ LOADED ]");
|
||||
if (!using_resource_data && file.is_open()) {
|
||||
file.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user