private GClass100 method_15(GClass30 gclass30_0, bool bool_5 = true) { this.method_17("Downloading TMD..."); string path = Path.Combine(gclass30_0.OutputPath, "title.tmd"); if (!bool_5 && gclass30_0.Tmd != null) { return(gclass30_0.Tmd); } GClass78 gclass78 = new GClass78(); byte[] numArray = (byte[])null; try { numArray = !(gclass30_0 is GClass33) ? gclass78.method_2(gclass30_0.String_1 + "tmd") : gclass78.method_2(string.Format("{0}tmd.{1}", (object)gclass30_0.String_1, (object)gclass30_0.Version)); gclass30_0.Tmd = GClass100.smethod_1(numArray, gclass30_0.System); } catch (Exception ex) { this.method_5("TMD not found\n" + ex.ToString() + "\n" + ex.InnerException?.ToString()); } if (bool_5) { System.IO.File.WriteAllBytes(path, numArray); } return(gclass30_0.Tmd); }
private void cmdSavelink_Click(object sender, EventArgs e) { this.txtUrl.Text = this.txtUrl.Text.Trim(); if (this.txtUrl.Text.Contains("wiiu.titlekeys.com")) { int num = (int)RadMessageBox.Show("This textbox is not meant to be used with this site. Please look below."); this.txtUrl.Text = ""; } else { GClass78 gclass78 = new GClass78(); try { gclass78.method_2(this.txtUrl.Text); this.FileLocationWiiU = this.txtUrl.Text; this.DialogResult = DialogResult.OK; this.Close(); } catch { int num = (int)RadMessageBox.Show("Sorry but the link you have provided seems invalid."); } } }