public override void Close() { IOStream.Seek(0, SeekOrigin.Begin); Palettes = null; Textures = null; _disposables.Dispose(); }
public override void Open() { Close(); using (Stream palettesStream = IOStream.GetStreamSegment(4096, MimPalettes.Size)) Palettes = MimPalettes.Read(palettesStream); Stream textureStream = _disposables.Add(IOStream.GetStreamSegment(12288)); Textures = new MimTextures(textureStream); }