[util] Check share path too when filling file lists

This fixes maplist showing only those maps in the user directory.
However, no checking is done for duplicate files due to earlier search
paths overriding later paths.
This commit is contained in:
Bill Currie 2022-11-11 22:04:02 +09:00
parent 5333c78f7a
commit 749a110b76

View file

@ -1756,6 +1756,9 @@ QFS_FilelistFill (filelist_t *list, const char *path, const char *ext,
for (search = vpath->user; search; search = search->next) {
qfs_filelistfill_do (list, search, cp, ext, strip);
}
for (search = vpath->share; search; search = search->next) {
qfs_filelistfill_do (list, search, cp, ext, strip);
}
}
free (cpath);
}