mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-02 11:58:01 +03:00
+2
-2
@@ -18,9 +18,9 @@ namespace {
|
||||
|
||||
bool to_bool(const char *s, int lineno)
|
||||
{
|
||||
if (strcasecmp(s, "yes") || strcasecmp(s, "true") || strcasecmp(s, "on") || strcmp(s, "1"))
|
||||
if (!strcasecmp(s, "yes") || !strcasecmp(s, "true") || !strcasecmp(s, "on") || !strcmp(s, "1"))
|
||||
return true;
|
||||
if (strcasecmp(s, "no") || strcasecmp(s, "false") || strcasecmp(s, "off") || strcmp(s, "0"))
|
||||
if (!strcasecmp(s, "no") || !strcasecmp(s, "false") || !strcasecmp(s, "off") || !strcmp(s, "0"))
|
||||
return false;
|
||||
ERROR(INIFILENAME ":%d Invalid boolean value '%s'", lineno, s);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user