Options: afegida opció per a permetre apagar el sistema
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user