New attempt to change listdirectory.
[xonotic/darkplaces.git] / menu.c
diff --git a/menu.c b/menu.c
index afae9ad..c8ffdb5 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -4468,10 +4468,7 @@ void ModList_RebuildList(void)
        stringlist_t list;
 
        stringlistinit(&list);
        stringlist_t list;
 
        stringlistinit(&list);
-       if (fs_basedir[0])
-               listdirectory(&list, fs_basedir);
-       else
-               listdirectory(&list, "./");
+       listdirectory(&list, fs_basedir, "");
        stringlistsort(&list);
        modlist_count = 0;
        modlist_numenabled = fs_numgamedirs;
        stringlistsort(&list);
        modlist_count = 0;
        modlist_numenabled = fs_numgamedirs;