From 869d7a6dcbaae85a99f7d4b8159d1be8028f5763 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 14 Dec 2023 17:55:46 +0100 Subject: [PATCH] only try to find a common folder in Zips if there's some data to check against. Without this the check for required file names will always fail so running the entire thing is pointless. --- src/common/filesystem/source/resourcefile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/filesystem/source/resourcefile.cpp b/src/common/filesystem/source/resourcefile.cpp index 5590b7a26a..9a8b6b9f17 100644 --- a/src/common/filesystem/source/resourcefile.cpp +++ b/src/common/filesystem/source/resourcefile.cpp @@ -383,8 +383,8 @@ void FResourceFile::PostProcessArchive(LumpFilterInfo *filter) // Entries in archives are sorted alphabetically. qsort(Entries, NumLumps, sizeof(Entries[0]), entrycmp); - FindCommonFolder(filter); if (!filter) return; + FindCommonFolder(filter); // Filter out lumps using the same names as the Autoload.* sections // in the ini file. We reduce the maximum lump concidered after