Acabat amb els singletones, de moment

Arreglat els checkEvents
This commit is contained in:
2025-02-22 23:39:10 +01:00
parent fc01676df2
commit 2ac425483b
25 changed files with 134 additions and 137 deletions

View File

@@ -115,14 +115,14 @@ bool loadOptionsFromFile(const std::string &file_path)
// El fichero no existe
else
{ // Crea el fichero con los valores por defecto
saveOptionsFromFile(file_path);
saveOptionsToFile(file_path);
}
// Si la versión de fichero no coincide, crea un fichero nuevo con los valores por defecto
if (configVersion != options.configVersion)
{
initOptions();
saveOptionsFromFile(file_path);
saveOptionsToFile(file_path);
}
// Normaliza los valores
@@ -142,7 +142,7 @@ bool loadOptionsFromFile(const std::string &file_path)
return success;
}
bool saveOptionsFromFile(const std::string &file_path)
bool saveOptionsToFile(const std::string &file_path)
{
bool success = true;