eliminada la clase Debug en Release
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
#include <string> // Para string
|
||||
@@ -37,4 +39,6 @@ class Debug {
|
||||
int x_ = 0; // Posicion donde escribir el texto de debug
|
||||
int y_ = 0; // Posición donde escribir el texto de debug
|
||||
bool enabled_ = false; // Indica si esta activo el modo debug
|
||||
};
|
||||
};
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -18,7 +18,9 @@
|
||||
#include "core/resources/resource_helper.hpp" // Para ResourceHelper
|
||||
#include "core/resources/resource_list.hpp" // Para Asset, AssetType
|
||||
#include "core/resources/resource_loader.hpp" // Para ResourceLoader
|
||||
#ifdef _DEBUG
|
||||
#include "core/system/debug.hpp" // Para Debug
|
||||
#endif
|
||||
#include "game/gameplay/cheevos.hpp" // Para Cheevos
|
||||
#include "game/options.hpp" // Para Options, options, OptionsVideo
|
||||
#include "game/scene_manager.hpp" // Para SceneManager
|
||||
@@ -143,7 +145,9 @@ Director::Director(std::vector<std::string> const& args) {
|
||||
// Aplica las teclas configuradas desde Options
|
||||
Input::get()->applyKeyboardBindingsFromOptions();
|
||||
|
||||
#ifdef _DEBUG
|
||||
Debug::init();
|
||||
#endif
|
||||
|
||||
// Special handling for cheevos.bin - also needs filesystem path
|
||||
#ifdef RELEASE_BUILD
|
||||
@@ -160,7 +164,9 @@ Director::~Director() {
|
||||
|
||||
// Destruye los singletones
|
||||
Cheevos::destroy();
|
||||
#ifdef _DEBUG
|
||||
Debug::destroy();
|
||||
#endif
|
||||
Input::destroy();
|
||||
Notifier::destroy();
|
||||
Resource::Cache::destroy();
|
||||
|
||||
Reference in New Issue
Block a user