Ya guarda y lee la configuracion

This commit is contained in:
2022-09-12 19:06:15 +02:00
parent c5aa28d738
commit 6b7769ca3c
8 changed files with 116 additions and 114 deletions

View File

@@ -531,7 +531,7 @@ color_t stringToColor(std::string str)
return {0x00, 0x00, 0x00};
}
// Devuelve un color_t a partir de un string
// Convierte una cadena en un valor booleano
bool stringToBool(std::string str)
{
if (str == "true")
@@ -542,4 +542,17 @@ bool stringToBool(std::string str)
{
return false;
}
}
// Convierte un valor booleano en una cadena
std::string boolToString(bool value)
{
if (value)
{
return "true";
}
else
{
return "false";
}
}