mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(VFS): use ImageFormatDecoder.Create
This commit is contained in:
@@ -732,15 +732,7 @@ namespace GameRes
|
|||||||
return arc_fs.Source.OpenImage (entry);
|
return arc_fs.Source.OpenImage (entry);
|
||||||
|
|
||||||
var input = fs.OpenBinaryStream (entry);
|
var input = fs.OpenBinaryStream (entry);
|
||||||
try
|
return ImageFormatDecoder.Create (input);
|
||||||
{
|
|
||||||
return new ImageFormatDecoder (input);
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
|
||||||
input.Dispose();
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Stream OpenStream (string filename)
|
public static Stream OpenStream (string filename)
|
||||||
|
|||||||
Reference in New Issue
Block a user