Skip to content

Commit

Permalink
only try to find a common folder in Zips if there's some data to chec…
Browse files Browse the repository at this point in the history
…k against.

Without this the check for required file names will always fail so running the entire thing is pointless.
  • Loading branch information
coelckers committed Dec 14, 2023
1 parent f8d839d commit 869d7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/filesystem/source/resourcefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 869d7a6

Please sign in to comment.