use Entry.ChangeType method.

This commit is contained in:
morkt
2017-01-25 09:34:38 +04:00
parent ec9f615919
commit f40102bef9
8 changed files with 11 additions and 61 deletions

View File

@@ -109,12 +109,7 @@ namespace GameRes.Formats.SHSystem
else
res = AutoEntry.DetectFileType (signature);
if (res != null)
{
entry.Type = res.Type;
var ext = res.Extensions.FirstOrDefault();
if (!string.IsNullOrEmpty (ext))
entry.Name = Path.ChangeExtension (entry.Name, ext);
}
entry.ChangeType (res);
}
}
}