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;