mirror of
https://github.com/blendogames/thirtyflightsofloving.git
synced 2025-02-22 11:41:02 +00:00
Added blacklist check for pak files in FS_FindFiles() and FS_FilteredFindFiles().
This commit is contained in:
parent
01d78fcaf7
commit
3da6641b19
1 changed files with 8 additions and 0 deletions
|
@ -1227,6 +1227,10 @@ char **FS_FindFiles (const char *path, const char *extension, int *num)
|
|||
pak = search->pack;
|
||||
for (i=0 ; i<pak->numFiles ; i++)
|
||||
{
|
||||
// skip blacklisted pak entries
|
||||
if (pak->files[i].ignore)
|
||||
continue;
|
||||
|
||||
// check path
|
||||
COM_FilePath (pak->files[i].name, dir, sizeof(dir));
|
||||
if ( Q_stricmp((char *)path, dir) )
|
||||
|
@ -1329,6 +1333,10 @@ char **FS_FilteredFindFiles (const char *pattern, int *num)
|
|||
pak = search->pack;
|
||||
for (i=0 ; i<pak->numFiles ; i++)
|
||||
{
|
||||
// skip blacklisted pak entries
|
||||
if (pak->files[i].ignore)
|
||||
continue;
|
||||
|
||||
// match pattern
|
||||
if ( !Q_GlobMatch(pattern, pak->files[i].name, false) )
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue