afegit define NO_AUDIO

renombrat define DEBUG a _DEBUG
This commit is contained in:
2025-07-23 09:24:04 +02:00
parent 921975851a
commit 74c1c096f8
14 changed files with 138 additions and 88 deletions

View File

@@ -1,11 +1,12 @@
#pragma once
#include <SDL3/SDL.h> // Para SDL_FRect, SDL_HideWindow, SDL_Renderer, SDL_ShowWindow, Uint32, SDL_Texture, SDL_Window
#include <memory> // Para shared_ptr
#include <string> // Para string
#include "color.h" // Para Color
#include "options.h" // Para VideoOptions, video
#include <memory> // Para shared_ptr
#include <string> // Para string
#include "color.h" // Para Color
#include "options.h" // Para VideoOptions, video
class Notifier;
class ServiceMenu;
@@ -53,7 +54,7 @@ class Screen {
[[nodiscard]] static auto getVSync() -> bool { return Options::video.v_sync; } // Obtiene el valor de V-Sync
[[nodiscard]] auto getText() const -> std::shared_ptr<Text> { return text_; } // Obtiene el puntero al texto de Screen
#ifdef DEBUG
#ifdef _DEBUG
// --- Debug ---
void toggleDebugInfo() { debug_info_.show = !debug_info_.show; }
void setDebugInfoEnabled(bool value) { debug_info_.show = value; }
@@ -161,7 +162,7 @@ class Screen {
[[nodiscard]] auto isEnabled() const -> bool { return enabled; }
};
#ifdef DEBUG
#ifdef _DEBUG
struct Debug {
std::shared_ptr<Text> text;
bool show = false;
@@ -187,7 +188,7 @@ class Screen {
FlashEffect flash_effect_; // Efecto de flash en pantalla
ShakeEffect shake_effect_; // Efecto de agitar la pantalla
bool attenuate_effect_ = false; // Indica si la pantalla ha de estar atenuada
#ifdef DEBUG
#ifdef _DEBUG
Debug debug_info_; // Información de debug
#endif