(ArchiveFormat): use ImageFormatDecoder.Cretate.

This commit is contained in:
morkt 2018-08-31 04:41:18 +04:00
parent 7f5d2c9b24
commit c96e61a4d3

View File

@ -67,15 +67,7 @@ namespace GameRes
public virtual IImageDecoder OpenImage (ArcFile arc, Entry entry)
{
var input = arc.OpenBinaryEntry (entry);
try
{
return new ImageFormatDecoder (input);
}
catch
{
input.Dispose();
throw;
}
return ImageFormatDecoder.Create (input);
}
/// <summary>