- fixed: The full dotted lump filter string was never used.

The code added all partial matches to the file system but not the full match.
This commit is contained in:
Christoph Oelckers 2020-06-07 11:55:51 +02:00
parent f0d208bf56
commit 724c8d4251

View file

@ -360,15 +360,12 @@ void FResourceFile::PostProcessArchive(void *lumps, size_t lumpsize, LumpFilterI
int lastpos = -1;
FString file;
FString LumpFilter = filter->dotFilter;
if (LumpFilter.IndexOf('.') < 0)
{
max -= FilterLumps(LumpFilter, lumps, lumpsize, max);
}
else while ((len = LumpFilter.IndexOf('.', lastpos+1)) > 0)
while ((len = LumpFilter.IndexOf('.', lastpos + 1)) > 0)
{
max -= FilterLumps(LumpFilter.Left(len), lumps, lumpsize, max);
lastpos = len;
}
max -= FilterLumps(LumpFilter, lumps, lumpsize, max);
JunkLeftoverFilters(lumps, lumpsize, max);
}