skip "hidden" files in ZIP archives

This commit is contained in:
Fabian Greffrath 2023-08-18 09:18:17 +02:00
parent edf67b8ebe
commit 77af6e50f6

View File

@ -606,6 +606,10 @@ static boolean D_AddZipFile(const char *file)
name = M_BaseName(file_stat.m_filename);
// [FG] skip "hidden" files
if (name[0] == '.')
continue;
if (M_StringCaseEndsWith(name, ".wad") || M_StringCaseEndsWith(name, ".lmp") ||
M_StringCaseEndsWith(name, ".ogg") || M_StringCaseEndsWith(name, ".flac") ||
M_StringCaseEndsWith(name, ".mp3"))