mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
commit
a20aa9434c
@ -44,7 +44,7 @@ namespace GameRes.Formats.ISM
|
||||
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
if (!file.View.AsciiEqual (4, "ARCHIVED"))
|
||||
if (!file.View.AsciiEqual (4, "ARCHIVED") && !file.View.AsciiEqual(4, "ENGLISH "))
|
||||
return null;
|
||||
int count = file.View.ReadInt16 (0x0C);
|
||||
if (!IsSaneCount (count))
|
||||
|
@ -54,7 +54,8 @@ namespace GameRes.Formats.Seraphim
|
||||
public override ImageMetaData ReadMetaData (IBinaryStream stream)
|
||||
{
|
||||
var header = stream.ReadHeader (0x10);
|
||||
if ('C' != header[0] || 'F' != header[1] || 0 != header[3])
|
||||
uint sig = header.ToUInt16(0);
|
||||
if (sig != Signature)
|
||||
return null;
|
||||
int packed_size = header.ToInt32 (12);
|
||||
if (packed_size <= 0 || packed_size > stream.Length-0x10)
|
||||
|
Loading…
x
Reference in New Issue
Block a user