mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(BinaryImageDecoder.Image): null coalesce.
This commit is contained in:
@@ -124,15 +124,7 @@ namespace GameRes
|
|||||||
public Stream Source { get { m_input.Position = 0; return m_input.AsStream; } }
|
public Stream Source { get { m_input.Position = 0; return m_input.AsStream; } }
|
||||||
public ImageFormat SourceFormat { get { return null; } }
|
public ImageFormat SourceFormat { get { return null; } }
|
||||||
public ImageMetaData Info { get; protected set; }
|
public ImageMetaData Info { get; protected set; }
|
||||||
public ImageData Image
|
public ImageData Image { get { return m_image ?? (m_image = GetImageData()); } }
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (null == m_image)
|
|
||||||
m_image = GetImageData();
|
|
||||||
return m_image;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected BinaryImageDecoder (IBinaryStream input)
|
protected BinaryImageDecoder (IBinaryStream input)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user