Options: afegida opció per a permetre apagar el sistema

This commit is contained in:
2025-06-12 20:11:07 +02:00
parent d2be756741
commit 6c707fa178
9 changed files with 27 additions and 12 deletions

View File

@@ -117,7 +117,8 @@ bool checkCollision(const SDL_FPoint &p, const SDL_FRect &r)
// Convierte una cadena en un valor booleano
bool stringToBool(const std::string &str)
{
return str == "true";
std::string s = trim(toLower(str));
return (s == "true" || s == "1" || s == "yes" || s == "on");
}
// Convierte un valor booleano en una cadena