From 6d22544732f505a69376af909c9292e9a704c26a Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 30 Oct 2015 08:53:05 +0400 Subject: [PATCH] (Arc2Opener): autodetect entry type. --- ArcFormats/Ethornell/ArcBGI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArcFormats/Ethornell/ArcBGI.cs b/ArcFormats/Ethornell/ArcBGI.cs index 8cf0272b..8d3f415c 100644 --- a/ArcFormats/Ethornell/ArcBGI.cs +++ b/ArcFormats/Ethornell/ArcBGI.cs @@ -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 (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;