public override void Dispose() { if (_xiso == null) { return; } _xiso.Dispose(); _xiso = null; GC.Collect(); }
private string GetUniqueName(Xiso xiso) { var s = new MemoryStream(); var writer = new BinaryWriter(s); writer.Write(xiso.Details.TitleId); writer.Write(xiso.Details.MediaId); writer.Write(xiso.Details.DiscNumber); writer.Write(xiso.Details.DiscCount); var buffer = _sha1.ComputeHash(s.ToArray()); Array.Resize(ref buffer, buffer.Length / 2); return(buffer.ToHex()); }
public void Load(string path) { Path = path; _xiso = new Xiso(path); }