AuroEntry changes.

(constructor): set offset property.
(GetName): use Path.ChangeExtension to set filename extension.
This commit is contained in:
morkt 2015-04-16 22:38:47 +04:00
parent 9b4aa48e37
commit 0aaf977c8a

View File

@ -59,7 +59,7 @@ namespace GameRes.Formats
return new AutoEntry (base_name, () => {
uint signature = file.View.ReadUInt32 (offset);
return FormatCatalog.Instance.LookupSignature (signature).FirstOrDefault();
});
}) { Offset = offset };
}
private string GetName (string name)
@ -69,7 +69,7 @@ namespace GameRes.Formats
var ext = m_res.Value.Extensions.FirstOrDefault();
if (string.IsNullOrEmpty (ext))
return name;
return string.Format ("{0}.{1}", name, ext);
return Path.ChangeExtension (name, ext);
}
private string GetEntryType ()