public void Dispose() { this.path = string.Empty; this.isoType = IsoType.GDF; this.xexHeader = null; this.xexHeader.Dispose(); this.defaultXexFile = null; }
private void ExtractInfo() { if (this.SearchForDefaultXeX() == -1) { throw new Exception("Default.xex/xeb was not found"); } try { this.iso.Reader.EndianType = EndianType.BigEndian; this.xexHeader = new XeXHeader(this.iso.Reader); this.iso.Reader.EndianType = EndianType.LittleEndian; } catch (Exception exception) { throw new Exception("Error while reading XEX/XEB header", exception); } }
public IsoGameInfo(string path) { try { this.path = path; Iso iso = new Iso(path); this.xexHeader = ObjectCopier.Clone <XeXHeader>(iso.DefaultXeX.XeXHeader); this.defaultXexFile = new byte[iso.DefaultXeX.File.Length]; iso.DefaultXeX.File.CopyTo(this.defaultXexFile, 0); this.isoType = iso.IsoType; iso.Dispose(); iso = null; } catch (Exception exception) { throw exception; } }