mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 12:39:16 +08:00
(TryOpen): check entry placement.
This commit is contained in:
parent
64f38255ee
commit
20efb9d89e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user