mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-11 08:08:53 +08:00
(VFS): use ImageFormatDecoder.Create
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user