From b2795a670837879c5b8a131fae09e976f390fa54 Mon Sep 17 00:00:00 2001 From: Xnick417x Date: Fri, 3 Jul 2026 17:22:39 +0000 Subject: [PATCH] Custom game picker: accept .bat and .cmd files --- app/src/main/app/shell/UnifiedActivity.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/app/shell/UnifiedActivity.kt b/app/src/main/app/shell/UnifiedActivity.kt index 55aa8a141..2969eae93 100644 --- a/app/src/main/app/shell/UnifiedActivity.kt +++ b/app/src/main/app/shell/UnifiedActivity.kt @@ -12140,7 +12140,11 @@ class UnifiedActivity : } fun selectExecutable(path: String) { - if (!path.endsWith(".exe", ignoreCase = true) || !java.io.File(path).isFile) { + val launchable = + path.endsWith(".exe", ignoreCase = true) || + path.endsWith(".bat", ignoreCase = true) || + path.endsWith(".cmd", ignoreCase = true) + if (!launchable || !java.io.File(path).isFile) { com.winlator.cmod.shared.ui.toast.WinToast.show( context, R.string.common_ui_select_valid_exe_file, @@ -12220,7 +12224,7 @@ class UnifiedActivity : android.os.Environment.DIRECTORY_DOWNLOADS, ).absolutePath, title = getString(R.string.common_ui_select_exe), - allowedExtensions = setOf("exe"), + allowedExtensions = setOf("exe", "bat", "cmd"), dimAmount = 0.5f, preserveBackdropBlur = true, extraRoots = driveRoots(includeInternal = true),