mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
GameRes refactoring.
(FormatCatalog.CreateEntry): method renamed to 'Create' and made generic towards Entry type.
This commit is contained in:
@@ -84,7 +84,7 @@ namespace GameRes.Formats.Ikura
|
||||
if (next_offset > file.MaxOffset || next_offset < offset)
|
||||
return null;
|
||||
string name = encoding.GetString (name_raw, 0, name_length).ToLowerInvariant();
|
||||
var entry = FormatCatalog.Instance.CreateEntry (name);
|
||||
var entry = FormatCatalog.Instance.Create<Entry> (name);
|
||||
entry.Offset = offset;
|
||||
entry.Size = next_offset - offset;
|
||||
dir.Add (entry);
|
||||
@@ -155,7 +155,7 @@ namespace GameRes.Formats.Ikura
|
||||
has_scripts = true;
|
||||
}
|
||||
else
|
||||
entry = FormatCatalog.Instance.CreateEntry (name);
|
||||
entry = FormatCatalog.Instance.Create<Entry> (name);
|
||||
entry.Offset = file.View.ReadUInt32 (dir_offset+12);
|
||||
entry.Size = file.View.ReadUInt32 (dir_offset+16);
|
||||
if (!entry.CheckPlacement (file.MaxOffset))
|
||||
|
||||
Reference in New Issue
Block a user