Actually search subfolders other than doing the "priority" one twice

Resolves Ring-Racers/#2 - what a genuinely embarassing oversight
This commit is contained in:
toaster 2025-09-12 12:53:18 +01:00
parent ec70f62f36
commit f9490f7f77

View file

@ -546,7 +546,7 @@ filestatus_t filesearch(char *filename, const char *startpath,
// When we're at the root of the search, we exclude certain folders.
if (priorityfolder != NULL
&& strcasecmp(priorityfolder, dent->d_name))
&& !strcasecmp(priorityfolder, dent->d_name))
{
// We skip revisiting the priority by pretending
// it matched the first exclude directory instead