Ejemplo n.º 1
0
 public override void Dispose()
 {
     if (_xiso == null)
     {
         return;
     }
     _xiso.Dispose();
     _xiso = null;
     GC.Collect();
 }
Ejemplo n.º 2
0
        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());
        }
Ejemplo n.º 3
0
 public void Load(string path)
 {
     Path  = path;
     _xiso = new Xiso(path);
 }