Fix: Carga de recursos en macOS Bundle + limpieza Makefile

- Arreglar getExecutableDirectory() para usar _NSGetExecutablePath en macOS
- Añadir getResourcesDirectory() con soporte MACOS_BUNDLE
- Actualizar main.cpp y engine.cpp para buscar recursos correctamente
- Eliminar referencias obsoletas a directorio 'config' en Makefile

Ahora resources.pack se busca en ../Resources/ cuando MACOS_BUNDLE está
definido, permitiendo que la app bundle funcione correctamente.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-05 10:17:46 +02:00
parent f41fbb6e6b
commit a7c9304214
4 changed files with 30 additions and 9 deletions

View File

@@ -75,8 +75,8 @@ int main(int argc, char* argv[]) {
}
// Inicializar sistema de recursos empaquetados (intentar cargar resources.pack)
std::string exe_dir = getExecutableDirectory();
std::string pack_path = exe_dir + "/resources.pack";
std::string resources_dir = getResourcesDirectory();
std::string pack_path = resources_dir + "/resources.pack";
Texture::initResourceSystem(pack_path);
Engine engine;