/************************************************************* *************************************************************/ private async void btnIsoCrypto_Click(object sender, EventArgs e) { cancellation = new CancellationTokenSource(); IsoCryptoClass cryptoClass = new IsoCryptoClass(); currentTask = cryptoClass.Process(cancellation.Token); await currentTask; }
private bool CheckIfValid() { // First, let's analyse it IsoCryptoClass icc = new IsoCryptoClass(); // Only valid if the iso has been a ripped encrypted ISO, deny Builded ISO's IsValid = icc.AnalyseISO(_odd) && icc.IsDecrypting && !icc.IsBuildedISO; if (IsValid) { Regions = icc.Regions; EndOfDataSector = Regions.Last().End; TotalSectors = _odd.GetNumSectors() + 1; } return(IsValid); }
private bool CheckIfValid() { // First, let's analyse it IsoCryptoClass icc = new IsoCryptoClass(); // Only valid if the iso has been a ripped encrypted ISO, deny Builded ISO's IsValid = icc.AnalyseISO(Path) && icc.IsDecrypting && !icc.IsBuildedISO; if (IsValid) { Regions = icc.Regions; FileInfo fi = new FileInfo(Path); EndOfDataSector = Regions.Last().End; TotalSectors = (uint)(fi.Length / Utilities.SectorSize); } return(IsValid); }