From 852446576723669acff97c1922de95439e771da2 Mon Sep 17 00:00:00 2001 From: Indev Date: Mon, 17 Nov 2025 03:12:00 +0300 Subject: [PATCH] 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;