From f670d35ba1b5f4a64d86101e6661433b58371eda Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 5 Oct 2020 00:20:33 +0200 Subject: [PATCH] - added a game-module wide lump filter for Duke and related games. --- source/core/initfs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/core/initfs.cpp b/source/core/initfs.cpp index 33b04446f..f18fd50d3 100644 --- a/source/core/initfs.cpp +++ b/source/core/initfs.cpp @@ -376,6 +376,9 @@ void InitFileSystem(TArray& groups) LumpFilterInfo lfi; lfi.dotFilter = LumpFilter; + + if (g_gameType & (GAMEFLAG_DUKE | GAMEFLAG_NAM | GAMEFLAG_NAPALM | GAMEFLAG_WW2GI | GAMEFLAG_RRALL)) lfi.gameTypeFilter.Push("DukeEngine"); + lfi.postprocessFunc = [&]() { DeleteStuff(fileSystem, todelete, groups.Size());