mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-06 05:38:48 +08:00
(VF): addtional check for exe files.
This commit is contained in:
@@ -66,6 +66,8 @@ namespace GameRes.Formats.LiveMaker
|
|||||||
&& (0x5A4D == (signature & 0xFFFF))) // 'MZ'
|
&& (0x5A4D == (signature & 0xFFFF))) // 'MZ'
|
||||||
{
|
{
|
||||||
base_offset = SkipExeData (index_file);
|
base_offset = SkipExeData (index_file);
|
||||||
|
if (base_offset >= file.MaxOffset)
|
||||||
|
return null;
|
||||||
signature = index_file.View.ReadUInt32 (base_offset);
|
signature = index_file.View.ReadUInt32 (base_offset);
|
||||||
}
|
}
|
||||||
else if (!file.Name.HasExtension (".dat"))
|
else if (!file.Name.HasExtension (".dat"))
|
||||||
|
|||||||
Reference in New Issue
Block a user