(VFS): use ImageFormatDecoder.Create

This commit is contained in:
morkt 2018-09-15 17:11:52 +04:00
parent 3d4f684ad1
commit 956a2c3839

View File

@ -732,15 +732,7 @@ namespace GameRes
return arc_fs.Source.OpenImage (entry);
var input = fs.OpenBinaryStream (entry);
try
{
return new ImageFormatDecoder (input);
}
catch
{
input.Dispose();
throw;
}
return ImageFormatDecoder.Create (input);
}
public static Stream OpenStream (string filename)