GameRes refactoring.

(FormatCatalog.CreateEntry): method renamed to 'Create' and made generic
towards Entry type.
This commit is contained in:
morkt
2015-08-30 22:34:06 +04:00
parent 4bfdc502e4
commit 46dbf2b142
53 changed files with 75 additions and 99 deletions

View File

@@ -96,8 +96,7 @@ namespace GameRes.Formats.Kogado
name = i.ToString ("D5");
if (0 != ext.Length)
name += '.'+ext;
var entry = new KogadoEntry { Name = name };
entry.Type = FormatCatalog.Instance.GetTypeFromName (entry.Name);
var entry = FormatCatalog.Instance.Create<KogadoEntry> (name);
entry.Offset = data_offset + file.View.ReadUInt32 (index_offset + 0x18);
if (version >= 0x200)
{