From 852446576723669acff97c1922de95439e771da2 Mon Sep 17 00:00:00 2001 From: Indev Date: Mon, 17 Nov 2025 03:12:00 +0300 Subject: [PATCH 1/3] Only skip exclude_paths if we're looking for addons (allows commands like exec find configs in luafiles) --- src/filesrch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/filesrch.c b/src/filesrch.c index c0940b2eb..94cf3ab85 100644 --- a/src/filesrch.c +++ b/src/filesrch.c @@ -190,9 +190,10 @@ filestatus_t filesearch(char *filename, const char *startpath, const UINT8 *want const char **path = exclude_paths; - if (depthleft == maxsearchdepth-1) + if (wantedmd5sum != NULL && depthleft == maxsearchdepth-1) { // When we're at the root of the search, we exclude certain folders. + // (unless we're not checking for addons) boolean skipfolder = false; From 4dd6d5255061b77494fb09762308b509565c8158 Mon Sep 17 00:00:00 2001 From: Indev Date: Mon, 17 Nov 2025 03:14:20 +0300 Subject: [PATCH 2/3] Revert "Only skip exclude_paths if we're looking for addons (allows commands like exec find configs in luafiles)" This reverts commit 852446576723669acff97c1922de95439e771da2. Right, -file exists --- src/filesrch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/filesrch.c b/src/filesrch.c index 94cf3ab85..c0940b2eb 100644 --- a/src/filesrch.c +++ b/src/filesrch.c @@ -190,10 +190,9 @@ filestatus_t filesearch(char *filename, const char *startpath, const UINT8 *want const char **path = exclude_paths; - if (wantedmd5sum != NULL && depthleft == maxsearchdepth-1) + if (depthleft == maxsearchdepth-1) { // When we're at the root of the search, we exclude certain folders. - // (unless we're not checking for addons) boolean skipfolder = false; From 8c31fd8a34df4bae3c77718e9d0f0ae24dfc0b83 Mon Sep 17 00:00:00 2001 From: Indev Date: Mon, 17 Nov 2025 03:15:23 +0300 Subject: [PATCH 3/3] Allow searching for files inside luafiles --- src/filesrch.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/filesrch.c b/src/filesrch.c index c0940b2eb..f7ff612bd 100644 --- a/src/filesrch.c +++ b/src/filesrch.c @@ -92,7 +92,6 @@ INT32 pathisdirectory(const char *path) // skip those folders, they will not have any addons static const char *exclude_paths[] = { "logs", - "luafiles", "replay", "mdls", "gifs",