Skip to content

Commit 6857a6b

Browse files
committed
Allow both uppercase and lowercase booleans in config
1 parent 3115ac8 commit 6857a6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,10 @@ bool hex_to_color(const char *string, SDL_Color *color)
590590
// A function to convert a string into a bool
591591
bool convert_bool(const char *string, bool default_setting)
592592
{
593-
if (!strcmp(string, "true")) {
593+
if (!strcmp(string, "true") || !strcmp(string, "True")) {
594594
return true;
595595
}
596-
else if (!strcmp(string, "false")) {
596+
else if (!strcmp(string, "false") || !strcmp(string, "False")) {
597597
return false;
598598
}
599599
else {

0 commit comments

Comments
 (0)