Skip to content
Snippets Groups Projects
Commit 3f622f90 authored by rswindell's avatar rswindell
Browse files

Support "ON" as a valid boolean key value.

parent e2e18258
No related branches found
No related tags found
No related merge requests found
......@@ -926,7 +926,7 @@ double iniGetFloat(str_list_t* list, const char* section, const char* key, doubl
static BOOL parseBool(const char* value)
{
if(!stricmp(value,"TRUE") || !stricmp(value,"YES"))
if(stricmp(value,"TRUE")==0 || stricmp(value,"YES")==0 || stricmp(value,"ON")==0)
return(TRUE);
return(INT_TO_BOOL(strtol(value,NULL,0)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment