mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 15:44:00 +08:00
(Dogenzaka.BinOpener): additional entry check.
This commit is contained in:
parent
7b7c6c7174
commit
8956722f76
@ -134,9 +134,9 @@ namespace GameRes.Formats.Dogenzaka
|
||||
var name = string.Format ("{0}#{1:D4}", base_name, i);
|
||||
var entry = AutoEntry.Create (file, next_offset, name);
|
||||
next_offset = base_offset + file.View.ReadUInt32 (index_offset);
|
||||
if (next_offset > file.MaxOffset)
|
||||
return null;
|
||||
entry.Size = next_offset - (uint)entry.Offset;
|
||||
if (!entry.CheckPlacement (file.MaxOffset))
|
||||
return null;
|
||||
dir.Add (entry);
|
||||
}
|
||||
return new ArcFile (file, this, dir);
|
||||
|
Loading…
Reference in New Issue
Block a user