- added a game-module wide lump filter for Duke and related games.

This commit is contained in:
Christoph Oelckers 2020-10-05 00:20:33 +02:00
parent 70e7176531
commit f670d35ba1

View file

@ -376,6 +376,9 @@ void InitFileSystem(TArray<GrpEntry>& groups)
LumpFilterInfo lfi; LumpFilterInfo lfi;
lfi.dotFilter = LumpFilter; lfi.dotFilter = LumpFilter;
if (g_gameType & (GAMEFLAG_DUKE | GAMEFLAG_NAM | GAMEFLAG_NAPALM | GAMEFLAG_WW2GI | GAMEFLAG_RRALL)) lfi.gameTypeFilter.Push("DukeEngine");
lfi.postprocessFunc = [&]() lfi.postprocessFunc = [&]()
{ {
DeleteStuff(fileSystem, todelete, groups.Size()); DeleteStuff(fileSystem, todelete, groups.Size());