afegit define NO_AUDIO
renombrat define DEBUG a _DEBUG
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
// IWYU pragma: no_include <bits/chrono.h>
|
||||
#include "director.h"
|
||||
|
||||
#include <SDL3/SDL.h> // Para SDL_Scancode, SDL_GamepadButton, SDL_LogCategory, SDL_LogInfo, SDL_SetLogPriority, SDL_LogPriority, SDL_Quit
|
||||
#include <sys/stat.h> // Para mkdir, stat, S_IRWXU
|
||||
#include <unistd.h> // Para getuid
|
||||
#include <algorithm> // Para min
|
||||
#include <cerrno> // Para errno, EEXIST, EACCES, ENAMETOOLONG
|
||||
#include <cstdio> // Para printf, perror
|
||||
#include <cstdlib> // Para exit, EXIT_FAILURE, size_t, srand, rand, system
|
||||
#include <ctime> // Para time
|
||||
#include <memory> // Para make_unique, unique_ptr
|
||||
#include <span> // Para span
|
||||
#include <stdexcept> // Para runtime_error
|
||||
#include <string> // Para operator+, allocator, char_traits, operator==, string, basic_string
|
||||
#include <vector> // Para vector
|
||||
#include <SDL3/SDL.h> // Para SDL_Scancode, SDL_GamepadButton, SDL_LogCategory, SDL_LogInfo, SDL_SetLogPriority, SDL_LogPriority, SDL_Quit
|
||||
#include <sys/stat.h> // Para mkdir, stat, S_IRWXU
|
||||
#include <unistd.h> // Para getuid
|
||||
|
||||
#include <algorithm> // Para min
|
||||
#include <cerrno> // Para errno, EEXIST, EACCES, ENAMETOOLONG
|
||||
#include <cstdio> // Para printf, perror
|
||||
#include <cstdlib> // Para exit, EXIT_FAILURE, size_t, srand, rand, system
|
||||
#include <ctime> // Para time
|
||||
#include <memory> // Para make_unique, unique_ptr
|
||||
#include <span> // Para span
|
||||
#include <stdexcept> // Para runtime_error
|
||||
#include <string> // Para operator+, allocator, char_traits, operator==, string, basic_string
|
||||
#include <vector> // Para vector
|
||||
|
||||
#include "asset.h" // Para Asset, AssetType
|
||||
#include "audio.h" // Para Audio
|
||||
@@ -37,7 +38,7 @@
|
||||
#include "utils.h" // Para Overrides, overrides, getPath
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <pwd.h> // Para getpwuid, passwd
|
||||
#include <pwd.h> // Para getpwuid, passwd
|
||||
#endif
|
||||
|
||||
// Constructor
|
||||
@@ -45,7 +46,7 @@ Director::Director(int argc, std::span<char *> argv) {
|
||||
#ifdef RECORDING
|
||||
Section::name = Section::Name::GAME;
|
||||
Section::options = Section::Options::GAME_PLAY_1P;
|
||||
#elif DEBUG
|
||||
#elif _DEBUG
|
||||
Section::name = Section::Name::GAME;
|
||||
Section::options = Section::Options::GAME_PLAY_1P;
|
||||
#else // NORMAL GAME
|
||||
@@ -134,7 +135,7 @@ void Director::loadParams() {
|
||||
// Carga el fichero de puntuaciones
|
||||
void Director::loadScoreFile() {
|
||||
auto manager = std::make_unique<ManageHiScoreTable>(Options::settings.hi_score_table);
|
||||
#ifdef DEBUG
|
||||
#ifdef _DEBUG
|
||||
manager->clear();
|
||||
#else
|
||||
if (overrides.clear_hi_score_table) {
|
||||
@@ -546,7 +547,7 @@ void Director::runGame() {
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef _DEBUG
|
||||
constexpr int CURRENT_STAGE = 0;
|
||||
#else
|
||||
constexpr int CURRENT_STAGE = 0;
|
||||
|
||||
Reference in New Issue
Block a user