repensada la forma d'asignar fitxers de demo als jugadors

refets els fitxers de demo i afegit un tercer fitxer
This commit is contained in:
2025-09-29 14:00:10 +02:00
parent c16fc1bae5
commit c98cb0d29f
5 changed files with 110 additions and 84 deletions

View File

@@ -2,6 +2,7 @@
#include <SDL3/SDL.h> // Para SDL_LogCategory, SDL_LogInfo, SDL_LogError, SDL_LogWarn
#include <algorithm> // Para std::sort
#include <cstddef> // Para size_t
#include <exception> // Para exception
#include <filesystem> // Para std::filesystem
@@ -299,6 +300,9 @@ auto Asset::getListByType(Type type) const -> std::vector<std::string> {
}
}
// Ordenar alfabéticamente para garantizar orden consistente
std::sort(list.begin(), list.end());
return list;
}