From 3c78926d753a9d0ff545ae90e7a0b2ee40ea6c6f Mon Sep 17 00:00:00 2001 From: t895 Date: Mon, 1 Jan 2024 22:51:32 -0500 Subject: android: Use case-insensitive check for addon directory --- .../app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt index 0dce8ad8d..816336820 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AddonsFragment.kt @@ -149,7 +149,7 @@ class AddonsFragment : Fragment() { } val isValid = externalAddonDirectory.listFiles() - .any { AddonUtil.validAddonDirectories.contains(it.name) } + .any { AddonUtil.validAddonDirectories.contains(it.name?.lowercase()) } val errorMessage = MessageDialogFragment.newInstance( requireActivity(), titleId = R.string.invalid_directory, -- cgit v1.2.3