(MC): header check.

This commit is contained in:
morkt 2019-02-25 12:56:22 +04:00
parent f79be94cde
commit aadb48a7dc

View File

@ -41,7 +41,7 @@ namespace GameRes.Formats.Seraphim
public override ArcFile TryOpen (ArcView file) public override ArcFile TryOpen (ArcView file)
{ {
if (file.View.ReadInt32 (0) != 0 || !file.View.AsciiEqual (4, "MCs")) if (file.View.ReadInt32 (0) != 0 || !file.View.AsciiEqual (4, "MC"))
return null; return null;
int count = file.View.ReadInt32 (8); int count = file.View.ReadInt32 (8);
if (!IsSaneCount (count)) if (!IsSaneCount (count))