mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(ImageFormatDecoder.Create): new static method.
This commit is contained in:
@@ -87,6 +87,23 @@ namespace GameRes
|
|||||||
Info = info;
|
Info = info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Create instance of ImageFormatDecoder from input binary stream.
|
||||||
|
/// In case of error input stream is disposed.
|
||||||
|
/// </summary>
|
||||||
|
public static ImageFormatDecoder Create (IBinaryStream input)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return new ImageFormatDecoder (input);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
input.Dispose();
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool m_disposed = false;
|
bool m_disposed = false;
|
||||||
public void Dispose ()
|
public void Dispose ()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user