Only skip exclude_paths if we're looking for addons (allows commands like exec find configs in luafiles)

This commit is contained in:
indev committed 2025-11-17 03:12:00 +03:00
1 parent 3e212ebaad
commit 8524465767
1 file changed
+2 -1
+2 -1
View File
@@ -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;