mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-07 14:18:56 +08:00
(TryOpen): check entry placement.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user