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