From 724c8d4251f04939bcb18ee87927ba4106791446 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 7 Jun 2020 11:55:51 +0200 Subject: [PATCH] - 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. --- source/common/filesystem/resourcefile.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/common/filesystem/resourcefile.cpp b/source/common/filesystem/resourcefile.cpp index 08919cee7..21a02ff7d 100644 --- a/source/common/filesystem/resourcefile.cpp +++ b/source/common/filesystem/resourcefile.cpp @@ -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); }