(VF): addtional check for exe files.

This commit is contained in:
morkt 2023-10-20 18:13:19 +04:00
parent a7f6862c49
commit 5f9340c32b

View File

@ -66,6 +66,8 @@ namespace GameRes.Formats.LiveMaker
&& (0x5A4D == (signature & 0xFFFF))) // 'MZ'
{
base_offset = SkipExeData (index_file);
if (base_offset >= file.MaxOffset)
return null;
signature = index_file.View.ReadUInt32 (base_offset);
}
else if (!file.Name.HasExtension (".dat"))