Trabajando en la cache de los recursos de los items

This commit is contained in:
2022-10-05 14:02:50 +02:00
parent 901757b9b2
commit 8076d8a765
5 changed files with 22 additions and 20 deletions

View File

@@ -183,7 +183,7 @@ bool AnimatedSprite::loadFromFile(std::string filePath)
if (file.good())
{
// Procesa el fichero linea a linea
printf("Reading file %s\n", filename.c_str());
std::cout << "Loading animation from file: " << filePath.c_str() << std::endl;
while (std::getline(file, line))
{
// Si la linea contiene el texto [animation] se realiza el proceso de carga de una animación
@@ -294,7 +294,6 @@ bool AnimatedSprite::loadFromFile(std::string filePath)
}
// Cierra el fichero
printf("Closing file %s\n\n", filename.c_str());
file.close();
}
// El fichero no se puede abrir