mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user