mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 12:39:16 +08:00
(uGOS): removed IDisposable interface from image reader.
This commit is contained in:
parent
03045b1337
commit
1706a0dd86
@ -71,11 +71,9 @@ namespace GameRes.Formats.uGOS
|
||||
|
||||
public override ImageData Read (IBinaryStream file, ImageMetaData info)
|
||||
{
|
||||
using (var reader = new Reader (file, (DetBmpMetaData)info))
|
||||
{
|
||||
reader.Unpack();
|
||||
return ImageData.CreateFlipped (info, reader.Format, null, reader.Data, reader.Stride);
|
||||
}
|
||||
var reader = new Reader (file, (DetBmpMetaData)info);
|
||||
reader.Unpack();
|
||||
return ImageData.CreateFlipped (info, reader.Format, null, reader.Data, reader.Stride);
|
||||
}
|
||||
|
||||
public override void Write (Stream file, ImageData image)
|
||||
@ -83,7 +81,7 @@ namespace GameRes.Formats.uGOS
|
||||
throw new System.NotImplementedException ("DetBmpFormat.Write not implemented");
|
||||
}
|
||||
|
||||
internal sealed class Reader : IDisposable
|
||||
internal sealed class Reader
|
||||
{
|
||||
IBinaryStream m_input;
|
||||
byte[] m_output;
|
||||
@ -451,12 +449,6 @@ namespace GameRes.Formats.uGOS
|
||||
dword_4CB750[i] = OffsetsX[i] + m_width * OffsetsY[i];
|
||||
}
|
||||
}
|
||||
|
||||
#region IDisposable Members
|
||||
public void Dispose ()
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user