(TryOpen): check entry placement.

This commit is contained in:
morkt 2014-07-29 14:18:24 +04:00
parent 64f38255ee
commit 20efb9d89e

View File

@ -143,6 +143,8 @@ namespace GameRes.Formats
IsPacked = compressed,
RawName = raw_name,
};
if (!entry.CheckPlacement (file.MaxOffset))
return null;
entry.Type = FormatCatalog.Instance.GetTypeFromName (entry.Name);
dir.Add (entry);
}