Ejemplo n.º 1
0
        private TMDExcractionAndProcessing 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.DownloadFile(gclass30_0.CDN_URL_PLUS_TITLEID + "tmd") : gclass78.DownloadFile(string.Format("{0}tmd.{1}", (object)gclass30_0.CDN_URL_PLUS_TITLEID, (object)gclass30_0.Version));
                gclass30_0.Tmd = TMDExcractionAndProcessing.ReadTMDBytes(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);
        }
Ejemplo n.º 2
0
 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.DownloadFile(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.");
         }
     }
 }