summaryrefslogtreecommitdiff
path: root/src/ui_demos.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2010-10-01 16:33:37 +0400
committerAndrey Nazarov <skuller@skuller.net>2010-10-01 17:21:52 +0400
commit57ff04fceb133d7c06c67bf991b5941766bb28da (patch)
tree4f7ca34f1a58cd35059c76f72dbdaadcc81684c7 /src/ui_demos.c
parentffd86f8fccf7a523e89553fefaa621457460aa38 (diff)
Clean up and fix file listing functions.
- Merge Sys_ListFiles and Sys_ListFilteredFiles into the single Sys_ListFiles_r implementatation (per platform). - Fix an off-by-one bug in Sys_ListFiles (per platform). - Fix an off-by-one bug in FS_ListFiles. - Made Sys_ListFiles ignore hidden and non-regular (irregular?) files on Unix. - Limit maximum recursion depth to 8 (opposed to 32 on Unix and unlimited depth on Win32). - Reduce listed files limit to 2048 from 4096. - Implement FS_SEARCH_STRIPEXT flag instead of ugly hack in FS_File_g. - Kill unused FS_SEARCH_NOSORT flag. - Replace FS_SEARCHDIRS_* cruft with single FS_SEARCH_DIRSONLY flag. - Use unsigned integer type for flags. - Don't list more than 128 files to avoid console spam.
Diffstat (limited to 'src/ui_demos.c')
-rw-r--r--src/ui_demos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui_demos.c b/src/ui_demos.c
index a79b742..ab75fd7 100644
--- a/src/ui_demos.c
+++ b/src/ui_demos.c
@@ -218,7 +218,7 @@ static void BuildList( void ) {
// alloc entries
dirlist = FS_ListFiles( m_demos.browse, NULL, FS_PATH_GAME |
- FS_SEARCHDIRS_ONLY, &numDirs );
+ FS_SEARCH_DIRSONLY, &numDirs );
demolist = FS_ListFiles( m_demos.browse, DEMO_EXTENSIONS, FS_PATH_GAME |
FS_SEARCH_EXTRAINFO, &numDemos );