mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(TryOpen): check entry placement.
This commit is contained in:
@@ -143,6 +143,8 @@ namespace GameRes.Formats
|
|||||||
IsPacked = compressed,
|
IsPacked = compressed,
|
||||||
RawName = raw_name,
|
RawName = raw_name,
|
||||||
};
|
};
|
||||||
|
if (!entry.CheckPlacement (file.MaxOffset))
|
||||||
|
return null;
|
||||||
entry.Type = FormatCatalog.Instance.GetTypeFromName (entry.Name);
|
entry.Type = FormatCatalog.Instance.GetTypeFromName (entry.Name);
|
||||||
dir.Add (entry);
|
dir.Add (entry);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user