forked from jaildesigner-jailgames/jaildoctors_dilemma
Ya guarda y lee la configuracion
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user