- Ignored dehacked.exe from *.zip files to enable loading of *.deh files.

This commit is contained in:
alexey.lysiuk 2013-08-02 10:17:06 +03:00
parent 0dc70f847c
commit 5c05f1f3cd

View file

@ -259,6 +259,13 @@ bool FZipFile::Open(bool quiet)
lump_p->CompressedSize = LittleLong(zip_fh->CompressedSize);
lump_p->Position = LittleLong(zip_fh->LocalHeaderOffset);
lump_p->CheckEmbedded();
// Ignore some very specific names
if (0 == stricmp("dehacked.exe", name))
{
memset(lump_p->Name, 0, sizeof(lump_p->Name));
}
lump_p++;
}
// Resize the lump record array to its actual size