(TCD): assign "image" type to *.spd files.

This commit is contained in:
morkt 2017-08-14 15:05:59 +04:00
parent 532f58625c
commit fd55204172

View File

@ -320,6 +320,8 @@ namespace GameRes.Formats.TopCat
name = Path.Combine (dir_name, name); name = Path.Combine (dir_name, name);
name = Path.ChangeExtension (name, section.Extension); name = Path.ChangeExtension (name, section.Extension);
var entry = FormatCatalog.Instance.Create<TcdEntry> (name); var entry = FormatCatalog.Instance.Create<TcdEntry> (name);
if (name.HasExtension (".SPD"))
entry.Type = "image";
entry.Offset = offsets[index]; entry.Offset = offsets[index];
entry.Size = offsets[index+1] - offsets[index]; entry.Size = offsets[index+1] - offsets[index];
entry.Index = index; entry.Index = index;