diff --git a/file_path.c b/file_path.c index cdd4be0a89..e28bc495f0 100644 --- a/file_path.c +++ b/file_path.c @@ -146,7 +146,7 @@ bool string_list_find_elem(const struct string_list *list, const char *elem) for (size_t i = 0; i < list->size; i++) { - if (strcmp(list->elems[i].data, elem) == 0) + if (strcasecmp(list->elems[i].data, elem) == 0) return true; } @@ -163,8 +163,8 @@ bool string_list_find_elem_prefix(const struct string_list *list, const char *pr for (size_t i = 0; i < list->size; i++) { - if (strcmp(list->elems[i].data, elem) == 0 || - strcmp(list->elems[i].data, prefixed) == 0) + if (strcasecmp(list->elems[i].data, elem) == 0 || + strcasecmp(list->elems[i].data, prefixed) == 0) return true; } diff --git a/frontend/menu/rgui.c b/frontend/menu/rgui.c index 34da51b40c..5705d72be1 100644 --- a/frontend/menu/rgui.c +++ b/frontend/menu/rgui.c @@ -2001,7 +2001,7 @@ static bool directory_parse(rgui_handle_t *rgui, const char *directory, unsigned { exts = ext_buf; if (*rgui->info.valid_extensions) - snprintf(ext_buf, sizeof(ext_buf), "%s|zip|ZIP", rgui->info.valid_extensions); + snprintf(ext_buf, sizeof(ext_buf), "%s|zip", rgui->info.valid_extensions); else *ext_buf = '\0'; } diff --git a/frontend/menu/rmenu.c b/frontend/menu/rmenu.c index 7f30f9e8d0..94abd93e24 100644 --- a/frontend/menu/rmenu.c +++ b/frontend/menu/rmenu.c @@ -2479,7 +2479,7 @@ static int select_rom(void *data, uint64_t input) { ext = ext_buf; if (*rgui->info.valid_extensions) - snprintf(ext_buf, sizeof(ext_buf), "%s|zip|ZIP", rgui->info.valid_extensions); + snprintf(ext_buf, sizeof(ext_buf), "%s|zip", rgui->info.valid_extensions); else *ext_buf = '\0'; }