forked from jaildesigner-jailgames/jaildoctors_dilemma
Acabat amb els singletones, de moment
Arreglat els checkEvents
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user