eliminat el fallback a disc en les versions de release

This commit is contained in:
2025-10-24 23:21:27 +02:00
parent 0c05f6d5b6
commit b9fe376f2a
2 changed files with 20 additions and 9 deletions

View File

@@ -81,11 +81,22 @@ void Director::init() {
// Configuración inicial de parametros
Asset::init(executable_path_); // Inicializa el sistema de gestión de archivos
// Determinar ruta del pack según la plataforma
#ifdef MACOS_BUNDLE
ResourceHelper::initializeResourceSystem(executable_path_ + "../Resources/resources.pack");
std::string pack_path = executable_path_ + "../Resources/resources.pack";
#else
ResourceHelper::initializeResourceSystem(executable_path_ + "resources.pack");
std::string pack_path = executable_path_ + "resources.pack";
#endif
// Inicializar sistema de recursos con o sin fallback según el tipo de build
#ifdef RELEASE_BUILD
// Release: Sin fallback - Solo resources.pack (estricto)
ResourceHelper::initializeResourceSystem(pack_path, false);
#else
// Desarrollo: Con fallback - Puede usar data/ si falta el pack (flexible)
ResourceHelper::initializeResourceSystem(pack_path, true);
#endif
loadAssets(); // Crea el índice de archivos
Logger::section("INIT INPUT");