mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(ArchiveFormat): use ImageFormatDecoder.Cretate.
This commit is contained in:
parent
7f5d2c9b24
commit
c96e61a4d3
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user