REVIEWED: LoadDirectoryFilesEx(), minor tweak #5569

This commit is contained in:
Ray
2026-02-17 16:51:50 +01:00
parent 1955516f54
commit 872cfae7ca
2 changed files with 5 additions and 2 deletions

View File

@ -2773,6 +2773,8 @@ FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool
if (DirectoryExists(basePath)) // It's a directory
{
if ((filter != NULL) && (filter[0] == '\0')) filter = NULL;
// SCAN 1: Count files
unsigned int fileCounter = GetDirectoryFileCountEx(basePath, filter, scanSubdirs);