Los datos se guardan en la carpeta de sistema

This commit is contained in:
2022-12-07 11:23:19 +01:00
parent c87e1e68a9
commit bbe82d329b
7 changed files with 262 additions and 64 deletions

View File

@@ -45,8 +45,10 @@ private:
Asset *asset; // Objeto que gestiona todos los ficheros de recursos
// Variables
struct options_t *options; // Variable con todas las opciones del programa
section_t section; // Sección y subsección actual del programa;
struct options_t *options; // Variable con todas las opciones del programa
section_t section; // Sección y subsección actual del programa;
std::string executablePath; // Path del ejecutable
std::string systemFolder; // Carpeta del sistema donde guardar datos
// Inicializa jail_audio
void initJailAudio();
@@ -75,6 +77,12 @@ private:
// Guarda el fichero de configuración
bool saveConfigFile();
// Comprueba los parametros del programa
void checkProgramArguments(int argc, char *argv[]);
// Crea la carpeta del sistema donde guardar datos
void createSystemFolder();
// Establece el valor de la variable
void setSection(section_t section);
@@ -92,7 +100,7 @@ private:
public:
// Constructor
Director(std::string path);
Director(int argc, char *argv[]);
// Destructor
~Director();