From 9c492533880b7c2d3da7e5f19c923384aad1e7b8 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 20 Mar 2025 20:31:19 +0300 Subject: [PATCH] filesystem: allow symlinks when using listdirectory with dirs_only = true Should fix special setups when game directories are actually symlinks --- filesystem/filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesystem/filesystem.c b/filesystem/filesystem.c index bbb01700..1579c6ad 100644 --- a/filesystem/filesystem.c +++ b/filesystem/filesystem.c @@ -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