Ejemplo n.º 1
0
 public Class17(string Curren_Game_Path, GClass30 gclass30_1)
 {
     if (!Directory.Exists(Curren_Game_Path))
     {
         Directory.CreateDirectory(Curren_Game_Path);
     }
     if (gclass30_1.System != SystemType.SystemWiiU)
     {
         throw new ArgumentException("Only wup titles are compatible");
     }
     this.Current_Game_Path = Curren_Game_Path;
     Directory.CreateDirectory(this.Current_Game_Path);
     this.gclass30_0           = gclass30_1;
     this.gclass95_0           = this.gclass30_0.method_14(false);
     this.gclass95_0.Boolean_1 = true;
     try
     {
         this.list_0 = JsonConvert.DeserializeObject <List <string> >(File.ReadAllText(this.String_0));
     }
     catch
     {
         this.list_0 = new List <string>();
     }
     this.gclass13_0 = gclass30_1.method_15();
     this.class9_0   = new Class9(this.gclass30_0);
     foreach (GClass12 file in this.gclass13_0.Files)
     {
         this.method_0(file);
     }
 }
Ejemplo n.º 2
0
        private void method_0(RadTreeView radTreeView_0, GClass30 gclass30_0, GClass13 gclass13_3, string string_0)
        {
            List <GClass12> gclass12List = new List <GClass12>();

            foreach (RadTreeNode checkedNode in radTreeView_0.CheckedNodes)
            {
                // ISSUE: object of a compiler-generated type is created
                // ISSUE: reference to a compiler-generated method
                gclass12List.Add(gclass13_3.Files.Find(new Predicate <GClass12>(new frmDownloadSpecificFiles.Class133()
                {
                    radTreeNode_0 = checkedNode
                }.method_0)));
            }
            if (gclass12List.Count <= 0)
            {
                return;
            }
            gclass30_0.method_16(string_0, true, true, (IEnumerable <GClass12>)gclass12List, false);
        }
Ejemplo n.º 3
0
        protected void method_9(bool bool_3)
        {
            string path1 = Path.Combine(GClass88.CachePath, "rpl2elf.exe");

            if (!System.IO.File.Exists(path1))
            {
                System.IO.File.WriteAllBytes(path1, Class123.rpl2elf);
            }
            GClass13 gclass13   = this.gclass30_0.method_15();
            GClass12 gclass12_1 = gclass13.Files.First <GClass12>((Func <GClass12, bool>)(gclass12_0 => gclass12_0.string_1.Contains(".rpx")));
            GClass12 gclass12_2 = gclass13.Files.First <GClass12>((Func <GClass12, bool>)(gclass12_0 =>
            {
                if (gclass12_0.bool_1)
                {
                    return(gclass12_0.string_1 == "code");
                }
                return(false);
            }));

            this.gclass30_0.method_16(this.String_5, true, (bool_3 ? 1 : 0) != 0, (IEnumerable <GClass12>) new GClass12[2]
            {
                gclass12_1,
                gclass12_2
            }, false);
            Process process = new Process();
            string  path2   = this.method_11();
            string  str     = this.method_10();

            process.StartInfo.FileName         = path1;
            process.EnableRaisingEvents        = true;
            process.StartInfo.CreateNoWindow   = true;
            process.StartInfo.Arguments        = string.Format("\"{0}\" \"{1}\"", (object)path2, (object)str);
            process.StartInfo.WorkingDirectory = Path.GetDirectoryName(path2);
            process.StartInfo.UseShellExecute  = false;
            process.Start();
            process.WaitForExit();
        }
Ejemplo n.º 4
0
 private void method_1(RadTreeNode radTreeNode_0, GClass13 gclass13_3, Class9 class9_3)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     frmDownloadSpecificFiles.Class134 class134 = new frmDownloadSpecificFiles.Class134();
     // ISSUE: reference to a compiler-generated field
     class134.radTreeNode_0 = radTreeNode_0;
     // ISSUE: reference to a compiler-generated field
     class134.frmDownloadSpecificFiles_0 = this;
     // ISSUE: reference to a compiler-generated field
     class134.class9_0 = class9_3;
     // ISSUE: reference to a compiler-generated field
     this.lblFullPath.Text = class134.radTreeNode_0.FullPath;
     this.grpPreview.Controls.Clear();
     // ISSUE: reference to a compiler-generated field
     if (class134.radTreeNode_0.Nodes.Count == 0)
     {
         // ISSUE: object of a compiler-generated type is created
         // ISSUE: variable of a compiler-generated type
         frmDownloadSpecificFiles.Class135 class135 = new frmDownloadSpecificFiles.Class135();
         // ISSUE: reference to a compiler-generated field
         class135.class134_0 = class134;
         // ISSUE: reference to a compiler-generated field
         // ISSUE: reference to a compiler-generated field
         // ISSUE: reference to a compiler-generated method
         class135.gclass12_0 = gclass13_3.Files.Find(new Predicate <GClass12>(class135.class134_0.method_0));
         // ISSUE: reference to a compiler-generated field
         this.lblSize.Text = new DataSize((ulong)class135.gclass12_0.uint_2).ToString();
         // ISSUE: reference to a compiler-generated method
         Task.Run(new Action(class135.method_0));
     }
     else
     {
         this.lblSize.Text = "";
     }
 }
Ejemplo n.º 5
0
        protected void method_2(GClass32 gclass32_1)
        {
            TitleId   titleId    = new TitleId(this.ToInject.TitleId.IdRaw.Replace("00050000F", "000500001").Replace("000500002", "000500001"));
            Class9    class9     = new Class9((GClass30)gclass32_1);
            GClass13  gclass13   = gclass32_1.method_15();
            string    str        = Encoding.UTF8.GetString(class9.method_0(gclass13.Files.First <GClass12>((Func <GClass12, bool>)(gclass12_0 => gclass12_0.string_1 == "meta.xml")), 0UL));
            XDocument xdocument1 = XDocument.Parse(Encoding.UTF8.GetString(class9.method_0(gclass13.Files.First <GClass12>((Func <GClass12, bool>)(gclass12_0 => gclass12_0.string_1 == "app.xml")), 0UL)).Trim('\xFEFF'));

            xdocument1.Document.Descendants((XName)"title_id").ElementAt <XElement>(0).Value = titleId.IdRaw;
            xdocument1.Save(this.method_4("rawFiles\\code\\app.xml"));
            string[] strArray = new string[12]
            {
                "ja",
                "en",
                "fr",
                "de",
                "it",
                "es",
                "zhs",
                "ko",
                "nl",
                "pt",
                "ru",
                "zht"
            };
            XDocument xdocument2 = XDocument.Parse(str.Trim('\xFEFF'));

            xdocument2.Document.Descendants((XName)"title_id").ElementAt <XElement>(0).Value     = titleId.IdRaw;
            xdocument2.Document.Descendants((XName)"product_code").ElementAt <XElement>(0).Value = this.ToInject.ProductId;
            foreach (XElement xelement in xdocument2.Document.Descendants().Where <XElement>((Func <XElement, bool>)(xelement_0 => xelement_0.Name.LocalName.Contains("publisher_"))))
            {
                xelement.Value = "Hikari06";
            }
            foreach (XElement xelement in xdocument2.Document.Descendants().Where <XElement>((Func <XElement, bool>)(xelement_0 => xelement_0.Name.LocalName.Contains("longname_"))))
            {
                xelement.Value = this.Name;
            }
            foreach (XElement xelement in xdocument2.Document.Descendants().Where <XElement>((Func <XElement, bool>)(xelement_0 => xelement_0.Name.LocalName.Contains("shortname_"))))
            {
                xelement.Value = this.Name;
            }
            foreach (XElement xelement in xdocument2.Document.Descendants().Where <XElement>((Func <XElement, bool>)(xelement_0 => xelement_0.Name.LocalName.Contains("pc_"))))
            {
                xelement.Value = "0";
            }
            try
            {
                if (this.UseGamepad)
                {
                    xdocument2.Document.Descendants((XName)"drc_use").ElementAt <XElement>(0).Value = "65537";
                }
                else
                {
                    xdocument2.Document.Descendants((XName)"drc_use").ElementAt <XElement>(0).Value = "0";
                }
            }
            catch
            {
            }
            xdocument2.Save(this.method_4("rawFiles\\meta\\meta.xml"));
        }