mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(Arc2Opener): autodetect entry type.
This commit is contained in:
parent
7800b6fd3d
commit
6d22544732
@ -121,8 +121,8 @@ namespace GameRes.Formats.BGI
|
||||
for (uint i = 0; i < count; ++i)
|
||||
{
|
||||
string name = file.View.ReadString (index_offset, 0x60);
|
||||
var entry = FormatCatalog.Instance.Create<Entry> (name);
|
||||
entry.Offset = base_offset + file.View.ReadUInt32 (index_offset+0x60);
|
||||
var offset = base_offset + file.View.ReadUInt32 (index_offset+0x60);
|
||||
var entry = AutoEntry.Create (file, offset, name);
|
||||
entry.Size = file.View.ReadUInt32 (index_offset+0x64);
|
||||
if (!entry.CheckPlacement (file.MaxOffset))
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user