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

@@ -128,8 +128,8 @@ bool Engine::initialize(int width, int height, int zoom, bool fullscreen) {
// Inicializar otros componentes si SDL se inicializó correctamente
if (success) {
// Cargar todas las texturas disponibles desde data/balls/
std::string exe_dir = getExecutableDirectory();
std::string balls_dir = exe_dir + "/data/balls";
std::string resources_dir = getResourcesDirectory();
std::string balls_dir = resources_dir + "/data/balls";
struct TextureInfo {
std::string name;