neteja tidy a source/core/system i audio amb fixes d'arrel
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
#include <cstdint> // for uint8_t
|
||||
#include <memory>
|
||||
#include <string> // for string, basic_string
|
||||
class Game;
|
||||
@@ -11,7 +12,7 @@ class Title;
|
||||
struct section_t;
|
||||
|
||||
// Secciones activas del Director
|
||||
enum class ActiveSection { None,
|
||||
enum class ActiveSection : std::uint8_t { None,
|
||||
Logo,
|
||||
Intro,
|
||||
Title,
|
||||
@@ -36,19 +37,19 @@ class Director {
|
||||
std::string systemFolder; // Carpeta del sistema donde guardar datos
|
||||
|
||||
// Inicializa jail_audio
|
||||
void initJailAudio();
|
||||
static void initJailAudio();
|
||||
|
||||
// Arranca SDL y crea la ventana
|
||||
bool initSDL();
|
||||
auto initSDL() -> bool;
|
||||
|
||||
// Inicializa el objeto input
|
||||
void initInput();
|
||||
static void initInput();
|
||||
|
||||
// Crea el indice de ficheros
|
||||
bool setFileList();
|
||||
auto setFileList() -> bool;
|
||||
|
||||
// Comprueba los parametros del programa
|
||||
void checkProgramArguments(int argc, const char *argv[]);
|
||||
static void checkProgramArguments(int argc, const char *argv[]);
|
||||
|
||||
// Crea la carpeta del sistema donde guardar datos
|
||||
void createSystemFolder(const std::string &folder);
|
||||
@@ -64,11 +65,11 @@ class Director {
|
||||
~Director();
|
||||
|
||||
Director(const Director &) = delete;
|
||||
Director &operator=(const Director &) = delete;
|
||||
auto operator=(const Director &) -> Director & = delete;
|
||||
|
||||
// Ejecuta un frame del juego
|
||||
SDL_AppResult iterate();
|
||||
auto iterate() -> SDL_AppResult;
|
||||
|
||||
// Procesa un evento
|
||||
SDL_AppResult handleEvent(SDL_Event *event);
|
||||
auto handleEvent(SDL_Event *event) -> SDL_AppResult;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user