filesystem: allow symlinks when using listdirectory with dirs_only = true

Should fix special setups when game directories are actually symlinks
This commit is contained in:
Alibek Omarov
2025-03-20 20:31:19 +03:00
parent eea804a4bf
commit 9c49253388

View File

@@ -264,7 +264,7 @@ void listdirectory( stringlist_t *list, const char *path, qboolean dirs_only )
while(( entry = readdir( dir )))
{
#if HAVE_DIRENT_D_TYPE
if( dirs_only && entry->d_type != DT_DIR && entry->d_type != DT_UNKNOWN )
if( dirs_only && entry->d_type != DT_DIR && entry->d_type != DT_LNK && entry->d_type != DT_UNKNOWN )
continue;
#endif