mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(ArchiveFormat): use ImageFormatDecoder.Cretate.
This commit is contained in:
@@ -67,15 +67,7 @@ namespace GameRes
|
|||||||
public virtual IImageDecoder OpenImage (ArcFile arc, Entry entry)
|
public virtual IImageDecoder OpenImage (ArcFile arc, Entry entry)
|
||||||
{
|
{
|
||||||
var input = arc.OpenBinaryEntry (entry);
|
var input = arc.OpenBinaryEntry (entry);
|
||||||
try
|
return ImageFormatDecoder.Create (input);
|
||||||
{
|
|
||||||
return new ImageFormatDecoder (input);
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
|
||||||
input.Dispose();
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user