async Task <bool> isVERIFED() { bool _passed = false;; //this.Invoke((Action)(async () => //{ if (RegCalls.GetREG(@"SOFTWARE\DERM", "GamePath") != null) { timer1.Stop(); if (Directory.Exists(RegCalls.GetREG(@"SOFTWARE\DERM", "GamePath"))) { saveDirectoryPath = RegCalls.GetREG(@"SOFTWARE\DERM", "GamePath"); steamLBL.ForeColor = Color.ForestGreen; steamLBL.Text = "Steam Already Verified!"; steamSTATUS.Image = DeReplaysManager.Properties.Resources.dotgreen; cbPATCH.Enabled = true; kryptonButton1.Enabled = true; var versionInfo = FileVersionInfo.GetVersionInfo(saveDirectoryPath + @"\AoE2DE_s.exe"); string version = versionInfo.FileVersion; string[] sver = version.Split('.'); label1.Text = "Current Version: " + sver[2]; timer1.Stop(); _passed = true; } } //})); return(_passed); }
async Task <bool> cmdDEPOT(string depot, string manifest) { try { NameValueCollection sAll; sAll = ConfigurationManager.AppSettings; string _downldCNT = RegCalls.GetREG(@"SOFTWARE\DERM", "Downloads") == null ? "8" : RegCalls.GetREG(@"SOFTWARE\DERM", "Downloads"); if (autoSTEAM.Checked) { /*Editted this line to request -beta. The Compiled binary uses a steam account*/ argz = "/c dotnet \"" + System.AppDomain.CurrentDomain.BaseDirectory + "\\DepotDownloader.dll\" -app 813780 -depot " + depot + " -manifest " + manifest + " -dir " + "\"" + SaveDirectoryPath() + "\"" + " -beta " + "-filelist " + "\"" + System.AppDomain.CurrentDomain.BaseDirectory + "exclude.txt" + "\" -validate -beta -max-downloads " + _downldCNT + " & exit"; } else { argz = "/c dotnet \"" + System.AppDomain.CurrentDomain.BaseDirectory + "\\DepotDownloader.dll\" -app 813780 -depot " + depot + " -manifest " + manifest + " -dir " + "\"" + SaveDirectoryPath() + "\"" + " -username " + userBOX.Text + " -password " + "\"" + passBOX.Text + "\"" + " -remember-password -filelist " + "\"" + System.AppDomain.CurrentDomain.BaseDirectory + "exclude.txt" + "\" -validate -max-downloads " + _downldCNT + " & exit"; } //output proccess lines Process mypr = new Process(); await OUTproc(argz, mypr); return(true); } catch (SystemException) { return(false); } }