Trabajando en el fichero de configuración

This commit is contained in:
2022-09-12 14:07:59 +02:00
parent 561f957bca
commit c5aa28d738
8 changed files with 275 additions and 25 deletions

View File

@@ -529,4 +529,17 @@ color_t stringToColor(std::string str)
}
return {0x00, 0x00, 0x00};
}
// Devuelve un color_t a partir de un string
bool stringToBool(std::string str)
{
if (str == "true")
{
return true;
}
else
{
return false;
}
}