private static string smethod_9(GClass32 gclass32_0) { string string_1 = (string)null; try { try { string string_0 = string.Format("{0}/res/emulators/banners/{1}.png", (object)Class67.CDNWiiUUSBHelperURL, (object)gclass32_0.TitleId.IdRaw); string_1 = System.IO.Path.Combine(GClass128.String_0, gclass32_0.TitleId.IdRaw + ".banner.png"); new GClass78().method_5(string_0, string_1, 0UL, GClass78.GEnum4.const_0, (WebProxy)null, 0L, (byte[])null, (byte[])null, (byte)0); return(string_1); } catch { string_1 = (string)null; } string html1 = new GClass78().Download_File_UTF8("http://steambanners.booru.org/index.php?page=post&s=list&tags=" + GClass30.smethod_3(GClass30.smethod_3(gclass32_0.Name.ToLower())).Replace(' ', '+')); HtmlAgilityPack.HtmlDocument htmlDocument = new HtmlAgilityPack.HtmlDocument(); htmlDocument.LoadHtml(html1); IEnumerable <string> source = htmlDocument.DocumentNode.Descendants("a").Where <HtmlNode>((Func <HtmlNode, bool>)(htmlNode_0 => htmlNode_0.Attributes.Contains("id"))).Select <HtmlNode, string>((Func <HtmlNode, string>)(htmlNode_0 => htmlNode_0.Attributes["href"].Value)).Where <string>((Func <string, bool>)(string_0 => string_0.Contains("index.php?page=post"))); if (source.Any <string>()) { string html2 = new GClass78().Download_File_UTF8("http://steambanners.booru.org/" + HtmlEntity.DeEntitize(source.ElementAt <string>(0))); htmlDocument.LoadHtml(html2); string string_0_1 = htmlDocument.DocumentNode.Descendants("img").Where <HtmlNode>((Func <HtmlNode, bool>)(htmlNode_0 => htmlNode_0.Attributes.Contains("src"))).Select <HtmlNode, string>((Func <HtmlNode, string>)(htmlNode_0 => htmlNode_0.Attributes["src"].Value)).Where <string>((Func <string, bool>)(string_0 => string_0.Contains("img.booru.org/steambanners//images"))).ElementAt <string>(0); string_1 = System.IO.Path.Combine(GClass128.String_0, gclass32_0.TitleId.IdRaw + ".banner.png"); new GClass78().method_5(string_0_1, string_1, 0UL, GClass78.GEnum4.const_0, (WebProxy)null, 0L, (byte[])null, (byte[])null, (byte)0); } } catch { } return(string_1); }
private void method_0() { this.gclass32_0 = (GClass32)null; List <Class152> class152List = JsonConvert.DeserializeObject <List <Class152> >(GClass6.smethod_20(string.Format("{0}/saves/list_saves.php", (object)Class67.String_1), new NameValueCollection() { { "username", Settings.Default.CloudUserName }, { "password", Settings.Default.CloudPassWord } })); this.lstSaves.BeginUpdate(); this.lstSaves.Items.Clear(); foreach (Class152 class152 in class152List) { ListViewDataItem listViewDataItem1 = new ListViewDataItem(); this.lstSaves.Items.Add(listViewDataItem1); listViewDataItem1[0] = (object)GClass28.dictionary_0[new TitleId(class152.string_1)].Name; ListViewDataItem listViewDataItem2 = listViewDataItem1; int index = 1; DateTime dateTime = frmManageCloudSaves.smethod_0((double)class152.long_0); string longDateString = dateTime.ToLongDateString(); string str1 = " "; dateTime = frmManageCloudSaves.smethod_0((double)class152.long_0); string longTimeString = dateTime.ToLongTimeString(); string str2 = longDateString + str1 + longTimeString; listViewDataItem2[index] = (object)str2; listViewDataItem1[2] = (object)new DataSize(class152.ulong_0); listViewDataItem1.Tag = (object)GClass28.dictionary_0[new TitleId(class152.string_1)]; } this.lstSaves.EndUpdate(); }
public static void smethod_2(GClass32 gclass32_0) { try { string str1 = GClass128.smethod_9(gclass32_0); if (str1 == null) { return; } string string_1 = GClass128.smethod_8(gclass32_0); foreach (string user in SteamManager.GetUsers(SteamManager.GetSteamFolder())) { ulong num = GClass128.smethod_3(gclass32_0.Name, string_1); string path2 = "config"; string path3 = "grid"; string str2 = System.IO.Path.Combine(user, path2, path3); System.IO.Directory.CreateDirectory(str2); string destFileName = System.IO.Path.Combine(str2, ((long)num).ToString() + ".png"); System.IO.File.Copy(str1, destFileName, true); } GClass6.smethod_6(str1); } catch { } }
public static void smethod_0(GClass32 gclass32_0) { // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method Task.Run(new Action(new Class27.Class28() { gclass32_0 = gclass32_0 }.method_0)); }
private static string smethod_4(GClass32 gclass32_0, GClass95 gclass95_0) { System.IO.Path.Combine(GClass88.DirectoryCache, "steam"); string string_1 = GClass128.smethod_8(gclass32_0); System.IO.Directory.CreateDirectory(GClass128.String_0); new GClass78().method_5(string.Format("{0}/res/tools/Shortcut.exe", (object)Class67.CDNWiiUUSBHelperURL), string_1, 0UL, GClass78.GEnum4.const_0, (WebProxy)null, 0L, (byte[])null, (byte[])null, (byte)0); System.IO.File.WriteAllText(string_1 + ".arg", string.Format("{0}|{1}|{2}", (object)gclass95_0.GetExecutable(), (object)gclass95_0.GetArguments(), (object)System.IO.Path.GetDirectoryName(gclass95_0.GetExecutable()))); return(string_1); }
private void lstSaves_SelectedItemChanged(object sender, EventArgs e) { try { this.gclass32_0 = this.lstSaves.SelectedItem.Tag as GClass32; } catch { } }
private GClass32 method_1(TitleId titleId_0, string string_5, string string_6, string string_7, DataSize dataSize_0) { GClass32 gclass32 = new GClass32(string_5, titleId_0, "ALL", (byte[])null, dataSize_0, (List <GClass33>)null, "0", "CTR-P-CTAP", "", "http://ccs.cdn.c.shop.nintendowifi.net/ccs/download/", Platform.Unknown, GEnum3.const_0); gclass32.CfwOnly = true; gclass32.TicketArray = GClass99.smethod_0(titleId_0.IdRaw, string_7, 0); gclass32.byte_0 = string_6.smethod_6(); gclass32.Ticket = GClass99.smethod_7(gclass32.TicketArray, GEnum3.const_0); gclass32.Ticket.Byte_0 = string_6.smethod_6(); return(gclass32); }
public frmCommunitySaves(GClass32 gclass32_1) { this.InitializeComponent(); this.gclass32_0 = gclass32_1; if (gclass32_1.method_14(false) != null && gclass32_1.method_14(false).FileSaveLocation != null) { this.method_0(); } else { int num = (int)RadMessageBox.Show("This title does not support community saves."); this.Close(); } }
public frmChoseSave(GClass32 gclass32_0) { this.InitializeComponent(); foreach (SaveDescription saveDescription in gclass32_0.method_24()) { ListViewDataItem listViewDataItem = new ListViewDataItem() { Tag = (object)saveDescription }; this.lstSaves.Items.Add(listViewDataItem); listViewDataItem[0] = (object)frmChoseSave.smethod_0(double.Parse(saveDescription.Timestamp)).ToShortDateString(); listViewDataItem[1] = (object)saveDescription.Description; } }
public GClass15(GClass32 gclass32_1) { this.gclass32_0 = gclass32_1; Alphaleonis.Win32.Filesystem.Directory.CreateDirectory(this.String_2); Alphaleonis.Win32.Filesystem.Directory.CreateDirectory(this.String_3); try { this.InstalledMods = JsonConvert.DeserializeObject <List <string> >(Alphaleonis.Win32.Filesystem.File.ReadAllText(this.String_1)); } catch { this.InstalledMods = new List <string>(); } }
private void method_15() { this.gclass32_0 = new GClass32[50]; List <GClass32> list = GClass28.dictionary_0.Values.Where <GClass32>((Func <GClass32, bool>)(gclass32_0 => gclass32_0.Boolean_1)).ToList <GClass32>(); try { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type Class120.Class119 class119 = new Class120.Class119(); // ISSUE: reference to a compiler-generated field class119.string_0 = GClass88.smethod_7("guiGames"); // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field for (class119.int_0 = 0; class119.int_0 < class119.string_0.Length && class119.int_0 < this.gclass32_0.Length; class119.int_0++) { // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated method GClass32 gclass32 = list.Find(class119.predicate_0 ?? (class119.predicate_0 = new Predicate <GClass32>(class119.method_0))); if (gclass32 != null && !((IEnumerable <GClass32>) this.gclass32_0).Contains <GClass32>(gclass32)) { // ISSUE: reference to a compiler-generated field this.gclass32_0[class119.int_0] = gclass32; } } foreach (GClass32 gclass32 in list.Where <GClass32>((Func <GClass32, bool>)(gclass32_1 => !((IEnumerable <GClass32>) this.gclass32_0).Contains <GClass32>(gclass32_1))).ToArray <GClass32>()) { for (int index = 0; index < this.gclass32_0.Length; ++index) { if (this.gclass32_0[index] == null) { this.gclass32_0[index] = gclass32; break; } } } } catch { for (int index = 0; index < this.gclass32_0.Length && index < list.Count; ++index) { this.gclass32_0[index] = list[index]; } } }
private static void smethod_5(GClass32 gclass32_0, GClass95 gclass95_0) { string str1 = System.IO.Path.Combine(GClass88.DirectoryCache, "icons"); string str2 = System.IO.Path.Combine(str1, gclass32_0.TitleId.IdRaw + ".ico"); System.IO.Directory.CreateDirectory(str1); using (MemoryStream memoryStream = new MemoryStream(new GClass78().DownloadFile(gclass32_0.IconUrl))) { using (FileStream fileStream = System.IO.File.Create(str2)) GClass124.smethod_0((Bitmap)Image.FromStream((Stream)memoryStream), (Stream)fileStream, 128, false); } string string_2 = GClass128.smethod_4(gclass32_0, gclass95_0); GClass128.smethod_6((GClass30)gclass32_0, GClass30.smethod_2(gclass32_0.Name), Environment.GetFolderPath(Environment.SpecialFolder.Desktop), string_2, str2, gclass32_0.Name, ""); }
public frmInjection(GClass32 gclass32_1) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type frmInjection.Class147 class147 = new frmInjection.Class147(); // ISSUE: reference to a compiler-generated field class147.gclass32_0 = gclass32_1; // ISSUE: explicit constructor call base.\u002Ector(); // ISSUE: reference to a compiler-generated field class147.frmInjection_0 = this; this.InitializeComponent(); // ISSUE: reference to a compiler-generated field if (!class147.gclass32_0.Boolean_0) { throw new ArgumentException("Only injectable titles can be provided!"); } // ISSUE: reference to a compiler-generated field this.gclass32_0 = class147.gclass32_0; // ISSUE: reference to a compiler-generated method FrmWait frmWait = new FrmWait("The injection tool is starting...", new Action(class147.method_0), (Action <Exception>)null); this.string_1 = string.Format("<html><p><strong><span style=\"font-size: 10pt\">Welcome to the USB Helper Injection Tool!</span></strong></p><p></p><p>You have selected a title which is normally not available on the eShop.</p><p>USB Helper allows you to build a game that will be launchable from the home menu.</p><p>USB Helper will take care of almost everything for you!</p><p><span style=\"color: #ff8000\">The only thing you have to do is to provide the required {0}.</span></p><p>Just drop it in the box below and have fun!<br /><span style=\"color: #000000\"> <p></p><p></p></span></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p></html>", (object)this.gclass91_0.String_1); this.grpDrop.Text = string.Format("Drop the following {0} : {1}({2}) {3}", (object)this.gclass91_0.String_1, (object)this.gclass32_0.Name, (object)this.gclass32_0.ProductId, (object)this.gclass32_0.Region); this.lblDrop.Text = string.Format("Drop the following {0} : {1}({2}) {3}", (object)this.gclass91_0.String_1, (object)this.gclass32_0.Name, (object)this.gclass32_0.ProductId, (object)this.gclass32_0.Region); if (this.gclass32_0.Platform != Platform.Gamecube) { this.chkRatio.Enabled = false; } if (this.gclass32_0.Platform == Platform.Gamecube) { this.lblIntro.Text = "<html><p><strong><span style=\"font-size: 10pt\">Welcome to the USB Helper Injection Tool!</span></strong></p><p></p><p>You have selected a title which is normally not available on the eShop.</p><p>USB Helper allows you to build a game that will be launchable from the home menu.</p><p>This way you can enjoy Gamecube games with your Wii U Gamepad!</p><p>USB Helper will take care of almost everything for you!</p><p><span style=\"color: #ff8000\">The only thing you have to do is to provide the required ISO.</span></p><p>Just drop it in the box below and have fun!<br /><span style=\"color: #000000\"> <p></p><p></p></span></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p></html>"; } else { this.lblIntro.Text = this.string_1; } this.method_3(); if (this.gclass32_0.Platform == Platform.Gamecube) { this.Size = new Size(609, 465); } else { this.Size = new Size(609, 362); } }
public static void smethod_0(GClass32 gclass32_0) { if (!gclass32_0.Boolean_1) { return; } try { GClass95 gclass95_0 = gclass32_0.method_14(false); if (!gclass95_0.Boolean_0) { if (!gclass95_0.EmuConfiguration_0.AutoUpdate) { int num = (int)RadMessageBox.Show(string.Format("No emulator detected. Please install it in {0} or enable Automatic updates in 'Emu. Settings'.", (object)gclass95_0.Root_BIN_Path)); return; } gclass95_0.CheckWebForEmulatorUpdate(); } gclass95_0.FullScreen = true; frmShortcutType frmShortcutType = new frmShortcutType((GClass30)gclass32_0); if (frmShortcutType.ShowDialog() != DialogResult.OK) { return; } if (frmShortcutType.ShortcutType == GEnum9.const_1) { GClass128.smethod_5(gclass32_0, gclass95_0); } else if (frmShortcutType.ShortcutType == GEnum9.const_0) { if (gclass95_0 is Cemu) { (gclass95_0 as Cemu).RenderUpsideDown = frmShortcutType.SteamLinkFix; } GClass128.smethod_7(gclass32_0, gclass95_0); } int num1 = (int)RadMessageBox.Show("Done!"); } catch (Exception ex) { int num = (int)RadMessageBox.Show(ex.ToString()); } }
private void method_17(GClass32 gclass32_1, float float_1 = 1f) { try { SoundEffectInstance soundEffectInstance0 = this.soundEffectInstance_0; if (soundEffectInstance0 != null) { soundEffectInstance0.Stop(); } SoundEffect soundEffect0 = this.soundEffect_0; if (soundEffect0 != null) { soundEffect0.Dispose(); } this.soundEffectInstance_0 = (SoundEffectInstance)null; this.soundEffect_0 = (SoundEffect)null; if (gclass32_1 == null) { return; } GClass95 gclass95 = gclass32_1.method_14(false); if (!File.Exists(gclass95.String_2)) { return; } if (!File.Exists(gclass95.String_3)) { this.method_10(this.GClass32_0); } using (FileStream fileStream = File.OpenRead(gclass95.String_3)) this.soundEffect_0 = SoundEffect.FromStream((Stream)fileStream); if (this.soundEffect_0 == null) { return; } this.soundEffectInstance_0 = this.soundEffect_0.CreateInstance(); this.soundEffect_0.Play(float_1, 0.0f, 0.0f); } catch { } }
private void method_10(GClass32 gclass32_1) { GClass95 gclass95 = gclass32_1.method_14(false); using (BinaryWriter binaryWriter = new BinaryWriter((Stream)File.Create(gclass95.String_3))) { byte[] buffer = new byte[2]; using (FileStream fileStream = File.Open(gclass95.String_2, FileMode.Open)) { binaryWriter.Write(this.byte_0); binaryWriter.Write((int)(fileStream.Length + 44L - 8L)); binaryWriter.Write(this.byte_1); binaryWriter.Write((int)fileStream.Length - 8); while (fileStream.Read(buffer, 0, 2) != 0) { binaryWriter.Write(buffer[1]); binaryWriter.Write(buffer[0]); } } } }
protected GClass91(GClass32 gclass32_1) { this.WorkPath = gclass32_1.String_2; this.ToInject = gclass32_1; if (!GClass91.Boolean_1 && GClass91.smethod_4() == null) { Class67.smethod_7("java.exe"); if (GClass91.smethod_4() == null) { int num = (int)RadMessageBox.Show("Java was not installed, it is required to build custom games."); throw new Exception("Java is not installed!"); } } this.Name = this.ToInject.Name; try { this.Name = this.method_6("name").Replace("\\n", "\n"); } catch { } }
public FrmWhatToCopy(GClass32 gclass32_1, WhatToAction whatToAction_1) { this.InitializeComponent(); this.bool_0 = whatToAction_1 == WhatToAction.Copy || whatToAction_1 == WhatToAction.Unpack; this.whatToAction_0 = whatToAction_1; this.title.Text = gclass32_1.Name; this.gclass32_0 = gclass32_1; this.Text = string.Format("What to {0}", (object)whatToAction_1); this.label1.Text = string.Format("Select what you would like to {0}", (object)Enum.GetName(typeof(WhatToAction), (object)whatToAction_1).ToLower()); if (this.bool_0) { this.chkCopyGame.Enabled = gclass32_1.GEnum2_0 == GEnum2.const_2; this.chkCopyUpdate.Enabled = gclass32_1.AreThereUpdates && gclass32_1.Updates.Any <GClass33>((Func <GClass33, bool>)(gclass33_0 => gclass33_0.GEnum2_0 == GEnum2.const_2)); this.chkCopyDlc.Enabled = gclass32_1.Dlc != null && gclass32_1.Dlc.GEnum2_0 == GEnum2.const_2; } else { this.chkCopyGame.Enabled = (uint)gclass32_1.GEnum2_0 > 0U; this.chkCopyUpdate.Enabled = gclass32_1.AreThereUpdates && gclass32_1.Updates.Any <GClass33>((Func <GClass33, bool>)(gclass33_0 => (uint)gclass33_0.GEnum2_0 > 0U)); this.chkCopyDlc.Enabled = gclass32_1.Dlc != null && (uint)gclass32_1.Dlc.GEnum2_0 > 0U; } this.Opacity = 0.0; }
public static void smethod_1(GClass32 gclass32_0, int int_0, Color color_0) { if (gclass32_0.gclass86_2.Image == null) { return; } if (gclass32_0.AreThereUpdates) { gclass32_0.gclass86_2.Image = gclass32_0.Updates.Last <GClass33>().GEnum2_0 == GEnum2.const_2 ? GClass6.smethod_17(gclass32_0.gclass86_2.Image, (Image)Class123.hasUpdateOk, true) : GClass6.smethod_17(gclass32_0.gclass86_2.Image, (Image)Class123.hasUpdate, true); } if (gclass32_0.Boolean_2) { gclass32_0.gclass86_2.Image = gclass32_0.Dlc.GEnum2_0 == GEnum2.const_2 ? GClass6.smethod_17(gclass32_0.gclass86_2.Image, (Image)Class123.hasDLCOk, true) : GClass6.smethod_17(gclass32_0.gclass86_2.Image, (Image)Class123.hasDLC, true); } switch (gclass32_0.System) { case SystemType.System3DS: gclass32_0.gclass86_2.Image = GClass6.smethod_17(gclass32_0.gclass86_2.Image, (Image)Class123.tag3ds, true); break; case SystemType.SystemWiiU: gclass32_0.gclass86_2.Image = GClass6.smethod_17(gclass32_0.gclass86_2.Image, (Image)Class123.tagWiiU, true); break; case SystemType.const_2: throw new NotImplementedException(); case SystemType.SystemWii: gclass32_0.gclass86_2.Image = GClass6.smethod_17(gclass32_0.gclass86_2.Image, (Image)Class123.tagWii, true); break; } if (gclass32_0.Boolean_4) { gclass32_0.gclass86_2.Image = GClass6.smethod_17(gclass32_0.gclass86_2.Image, (Image)Class123.newTag, true); } gclass32_0.gclass86_2.Image = gclass32_0.gclass86_2.Image.smethod_0(int_0, color_0, true); }
public frmUnpackAnimation(GClass30 gclass30_0) { this.InitializeComponent(); this.Region = Class97.smethod_6((Form)this, 40); GClass32 gclass32 = (GClass32)null; if (gclass30_0 is GClass32) { gclass32 = gclass30_0 as GClass32; this.lblTile.Text = gclass32.Name; } if (gclass30_0 is GClass31) { gclass32 = GClass28.dictionary_0[new TitleId((string)gclass30_0.TitleId.FullGame)]; this.lblTile.Text = gclass32.Name + " DLC"; } if (gclass30_0 is GClass33) { gclass32 = GClass28.dictionary_0[new TitleId((string)gclass30_0.TitleId.FullGame)]; this.lblTile.Text = gclass32.Name + " UPDATE"; } this.pictureBox1.Image = gclass32.gclass86_0.Image; gclass32.method_28((Action <GClass74, GClass32>)((gclass74_0, gclass32_0) => this.pictureBox1.ImageLocation = gclass74_0.BannerUrl)); }
public frmDownloadSpecificFiles(GClass32 gclass32_1) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type frmDownloadSpecificFiles.Class132 class132 = new frmDownloadSpecificFiles.Class132(); // ISSUE: reference to a compiler-generated field class132.gclass32_0 = gclass32_1; // ISSUE: explicit constructor call base.\u002Ector(); // ISSUE: reference to a compiler-generated field class132.frmDownloadSpecificFiles_0 = this; this.InitializeComponent(); // ISSUE: reference to a compiler-generated field this.gclass32_0 = class132.gclass32_0; if (this.gclass32_0.Boolean_0) { return; } // ISSUE: reference to a compiler-generated field if (class132.gclass32_0.System != SystemType.SystemWiiU) { throw new Exception("This only works with WUP titles!"); } this.lstNodesGame.TriStateMode = true; this.lstNodesDlc.TriStateMode = true; this.lstNodesUpdate.TriStateMode = true; // ISSUE: reference to a compiler-generated field this.lstNodesUpdate.Enabled = class132.gclass32_0.Boolean_3; // ISSUE: reference to a compiler-generated field this.lstNodesDlc.Enabled = class132.gclass32_0.Boolean_2; // ISSUE: reference to a compiler-generated field this.lstNodesGame.Enabled = !class132.gclass32_0.DiscOnly; int num; // ISSUE: reference to a compiler-generated method FrmWait frmWait = new FrmWait("Please wait while USB Helper fetches data...", new Action(class132.method_0), (Action <Exception>)(exception_0 => num = (int)RadMessageBox.Show("An error has occured.\n" + (object)exception_0))); }
public GClass94(GClass32 gclass32_1) : base(gclass32_1) { try { this.method_6("twodiscs"); this.RomCount = 2; } catch { } this.CompressIso = this.method_0("notcompress", true); if (gclass32_1.Platform == Platform.Wii_Custom) { this.UseGamepad = this.method_0("gamepad", false); if (this.UseGamepad) { this.VerticalWiimote = this.method_0("vertical", false); this.HorizontalWiimote = this.method_0("horizontal", false); } this.PatchWifi = this.method_0("online", false); try { string[] strArray = this.method_6("patch").Split(new string[1] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); this.PatchGame = new TitleId(strArray[0]); this.PatchSize = strArray[1]; } catch { } } this.string_3 = new string[this.RomCount]; }
public GClass93(GClass32 gclass32_1) : base(gclass32_1) { }
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")); }
private void FrmImport_Load(object sender, EventArgs e) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type FrmImport.Class156 class156 = new FrmImport.Class156(); // ISSUE: reference to a compiler-generated field class156.frmImport_0 = this; this.lstTitles.SortDescriptors.Add(new SortDescriptor("Value", ListSortDirection.Ascending)); // ISSUE: reference to a compiler-generated field class156.string_0 = new string[0]; // ISSUE: reference to a compiler-generated field class156.string_1 = new string[0]; int num1; // ISSUE: reference to a compiler-generated method FrmWait frmWait = new FrmWait("USB Helper is looking for importable titles...", new Action(class156.method_0), (Action <Exception>)(exception_0 => num1 = (int)RadMessageBox.Show("An error has occured.\n" + (object)exception_0))); Struct4 struct4; // ISSUE: reference to a compiler-generated field foreach (string str1 in class156.string_0) { string str2 = "Ready to import"; GClass100 gclass100 = GClass100.smethod_0(str1, GEnum3.const_1); TitleId titleId = new TitleId(gclass100.TitleId.ToString("x16")); if (!GClass28.dictionary_0.ContainsKey(titleId.FullGame)) { string str3 = "Cannot be imported, not in the database"; ListViewDataItem listViewDataItem = new ListViewDataItem(); this.lstTitles.Items.Add(listViewDataItem); listViewDataItem.Enabled = false; listViewDataItem[0] = (object)string.Format("UNKNOWN ({0})", (object)titleId.IdRaw); listViewDataItem[1] = (object)str3; } else { GClass30 gclass30 = (GClass30)null; switch (titleId.IdType) { case GEnum1.const_0: gclass30 = (GClass30)GClass28.dictionary_0[titleId.FullGame]; if (gclass30.System == GEnum3.const_0) { gclass30 = (GClass30)GClass28.dictionary_0[titleId.FullGame].Updates.Last <GClass33>(); break; } if (gclass30.System == GEnum3.const_1) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type FrmImport.Class157 class157 = new FrmImport.Class157(); // ISSUE: reference to a compiler-generated field class157.ushort_0 = gclass100.TitleVersion; try { // ISSUE: reference to a compiler-generated method gclass30 = (GClass30)GClass28.dictionary_0[titleId.FullGame].Updates.Find(new Predicate <GClass33>(class157.method_0)); break; } catch { gclass30 = (GClass30)null; break; } } else { break; } case GEnum1.const_1: gclass30 = (GClass30)GClass28.dictionary_0[titleId.FullGame]; break; case GEnum1.const_2: gclass30 = (GClass30)GClass28.dictionary_0[titleId.FullGame].Dlc; break; case GEnum1.const_3: gclass30 = (GClass30)GClass28.dictionary_0[titleId.FullGame]; break; case GEnum1.const_4: gclass30 = (GClass30)GClass28.dictionary_0[titleId.FullGame]; break; } if (gclass30 != null) { ListViewDataItem listViewDataItem1 = new ListViewDataItem(); struct4 = new Struct4(); struct4.gclass100_0 = gclass100; struct4.gclass30_0 = gclass30; struct4.string_0 = Path.GetDirectoryName(str1); listViewDataItem1.Tag = (object)struct4; ListViewDataItem listViewDataItem2 = listViewDataItem1; if (gclass30.GEnum2_0 != GEnum2.const_0) { str2 = "Cannot be imported, already in the library"; listViewDataItem2.Enabled = false; } this.lstTitles.Items.Add(listViewDataItem2); listViewDataItem2[0] = (object)gclass30.ToString(); listViewDataItem2[1] = (object)str2; } } } // ISSUE: reference to a compiler-generated field foreach (string str in class156.string_1) { try { if (!(new DirectoryInfo(Path.GetDirectoryName(str)).Name != "meta")) { TitleId key = new TitleId(XDocument.Load(str).Descendants((XName)"title_id").ElementAt <XElement>(0).Value); if (key.IdType == GEnum1.const_1) { if (GClass28.dictionary_0.ContainsKey(key)) { GClass32 gclass32 = GClass28.dictionary_0[key]; GClass95 gclass95 = gclass32.method_14(false); if (gclass95 != null) { if (!gclass32.Boolean_1) { ListViewDataItem listViewDataItem1 = new ListViewDataItem(); this.lstTitles.Items.Add(listViewDataItem1); listViewDataItem1[0] = (object)(gclass32.Name + " (EMU)"); listViewDataItem1[1] = (object)"Importable"; ListViewDataItem listViewDataItem2 = listViewDataItem1; struct4 = new Struct4(); struct4.gclass30_0 = (GClass30)gclass32; struct4.gclass95_0 = gclass95; struct4.string_0 = new DirectoryInfo(Path.GetDirectoryName(str)).Parent.FullName; // ISSUE: variable of a boxed type __Boxed <Struct4> local = (ValueType)struct4; listViewDataItem2.Tag = (object)local; } } } } } } catch { } } if (this.lstTitles.Items.Count != 0) { return; } int num2 = (int)RadMessageBox.Show("No games were found. Please specify another path."); this.DialogResult = DialogResult.Abort; this.Close(); }
private static void smethod_5(byte[] byte_0) { try { using (Stream stream = (Stream) new MemoryStream(byte_0)) { using (IReader reader = ReaderFactory.Open(stream, (ReaderOptions)null)) { char ch = reader.ArchiveType == ArchiveType.Zip ? '/' : '\\'; while (reader.MoveToNextEntry()) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type GClass26.Class37 class37 = new GClass26.Class37(); if (!reader.Entry.IsDirectory) { // ISSUE: reference to a compiler-generated field class37.string_0 = reader.Entry.Key.Split(new char[1] { ch }, StringSplitOptions.RemoveEmptyEntries); // ISSUE: reference to a compiler-generated field if (class37.string_0.Length >= 4) { // ISSUE: reference to a compiler-generated field TitleId index = new TitleId(class37.string_0[2]); if (GClass28.dictionary_2.ContainsKey(index.FullGame) && index.IdType != DownloadType.Update && !((IEnumerable <string>)GClass28.string_5).Contains <string>((string)index.FullGame)) { byte[] buffer; using (MemoryStream memoryStream = new MemoryStream()) { reader.WriteEntryTo((Stream)memoryStream); buffer = memoryStream.GetBuffer(); } switch (index.IdType) { case DownloadType.DLC: if (GClass28.dictionary_1.ContainsKey(index)) { // ISSUE: reference to a compiler-generated field GClass31 gclass31_1 = new GClass31("", index, class37.string_0[0], buffer, GClass28.dictionary_1[index].dataSize_0, "http://ccs.cdn.wup.shop.nintendo.net/ccs/download/", SystemType.SystemWiiU); gclass31_1.CfwOnly = true; GClass31 gclass31_2 = gclass31_1; GClass28.list_6.Add(gclass31_2); continue; } break; case DownloadType.const_5: continue; } List <GClass33> list_2 = new List <GClass33>(); if (GClass28.dictionary_3.ContainsKey(new TitleId((string)index.FullUpdate))) { // ISSUE: reference to a compiler-generated method list_2.AddRange(GClass28.dictionary_3[index.FullUpdate].Select <GClass80.GStruct5, GClass33>(new Func <GClass80.GStruct5, GClass33>(class37.method_0))); } // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field GClass32 gclass32 = new GClass32(class37.string_0[1], index, class37.string_0[0], buffer, GClass28.dictionary_2[index].Size, list_2, GClass28.dictionary_2[index].EshopId, GClass28.dictionary_2[index].ProductCode, GClass28.dictionary_2[index].IconUrl, "http://ccs.cdn.wup.shop.nintendo.net/ccs/download/", GClass28.dictionary_2[index].Platform, SystemType.SystemWiiU); if (GClass28.dictionary_2[index.FullGame].ProductCode.Length < 6) { Console.WriteLine(string.Format("{0} {1} {2} has bad product code.", (object)gclass32.Name, (object)gclass32.TitleId, (object)gclass32.EshopId)); } if (GClass28.dictionary_2[index.FullGame].IconUrl == "#N/A") { Console.WriteLine(string.Format("{0} {1} {2} has bad icon url.", (object)gclass32.Name, (object)gclass32.TitleId, (object)gclass32.EshopId)); } if (!GClass28.dictionary_0.ContainsKey(gclass32.TitleId)) { GClass28.dictionary_0.Add(gclass32.TitleId, gclass32); } } } } } } } } catch { throw new NotImplementedException(); } }
public frmEmuInfo(GClass32 gclass32_1) { this.gclass32_0 = gclass32_1; this.InitializeComponent(); }
public static void smethod_7(GClass32 gclass32_0, GClass82 gclass82_0, Form form_1) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type Class97.Class100 class100 = new Class97.Class100(); // ISSUE: reference to a compiler-generated field class100.gclass32_0 = gclass32_0; // ISSUE: reference to a compiler-generated field class100.gclass82_0 = gclass82_0; // ISSUE: reference to a compiler-generated field class100.form_0 = form_1; // ISSUE: reference to a compiler-generated field if (class100.gclass82_0 == null) { // ISSUE: reference to a compiler-generated field Class97.smethod_16(class100.form_0); } else { if (RadMessageBox.Show("USB Helper will now try to import your save from your Wii U to CEMU. This will OVERWRITE any save you already have on your computer AND on your USB Helper Cloud if enabled. Continue?", "Continue?", MessageBoxButtons.YesNo) == DialogResult.No) { return; } // ISSUE: reference to a compiler-generated field class100.string_0 = (string)null; // ISSUE: reference to a compiler-generated field class100.frmWait_0 = new FrmWait("Please wait while USB Helper downloads your save.", false); // ISSUE: reference to a compiler-generated method Task.Run(new Action(class100.method_0)); // ISSUE: reference to a compiler-generated field int num = (int)class100.frmWait_0.ShowDialog(); // ISSUE: reference to a compiler-generated field if (class100.string_0 != null) { // ISSUE: reference to a compiler-generated field Cemu cemu = class100.gclass32_0.method_14(false) as Cemu; string fileSaveLocation = cemu.FileSaveLocation; GClass6.smethod_5(fileSaveLocation); Directory.CreateDirectory(fileSaveLocation); // ISSUE: reference to a compiler-generated field using (FileStream fileStream = File.OpenRead(class100.string_0)) { using (ZipArchive source = new ZipArchive((Stream)fileStream)) source.ExtractToDirectory(fileSaveLocation); } string str = Path.Combine(fileSaveLocation, "user"); if (Directory.Exists(str)) { try { Directory.Move(((IEnumerable <DirectoryInfo>) new DirectoryInfo(str).GetDirectories()).First <DirectoryInfo>((Func <DirectoryInfo, bool>)(directoryInfo_0 => GClass6.smethod_4(directoryInfo_0.Name))).FullName, Path.Combine(str, "80000001")); if (Settings.Default.EnableCloudSaving) { cemu.method_2(cemu.vmethod_0(), Settings.Default.CloudUserName, Settings.Default.CloudPassWord); } } catch { } } } else { // ISSUE: reference to a compiler-generated field Class97.smethod_15(class100.form_0, "Could not import your save."); } // ISSUE: reference to a compiler-generated field class100.frmWait_0.method_0(); } }
private static void smethod_7(GClass32 gclass32_0, GClass95 gclass95_0) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type GClass128.Class114 class114 = new GClass128.Class114(); // ISSUE: reference to a compiler-generated field class114.gclass32_0 = gclass32_0; if (GClass6.smethod_16("Steam")) { int num1 = (int)RadMessageBox.Show("Games cannot be added while Steam is running. Please close it and try again"); } else { string steamFolder = SteamManager.GetSteamFolder(); if (!System.IO.Directory.Exists(steamFolder)) { int num2 = (int)RadMessageBox.Show("Steam is not installed. Cannot proceed."); } else { string[] users = SteamManager.GetUsers(steamFolder); if (users.Length == 0) { int num3 = (int)RadMessageBox.Show("USB Helper was unable to find any registered Steam user. Make sure you have logged in at least once."); } else { string str1 = System.IO.Path.Combine(GClass128.String_0, "backup"); System.IO.Directory.CreateDirectory(GClass128.String_0); System.IO.Directory.CreateDirectory(str1); // ISSUE: reference to a compiler-generated field string str2 = System.IO.Path.Combine(GClass128.String_0, "icon" + class114.gclass32_0.TitleId.IdRaw + ".tmp"); // ISSUE: reference to a compiler-generated field string filename = System.IO.Path.Combine(GClass128.String_0, "icon" + class114.gclass32_0.TitleId.IdRaw + ".png"); // ISSUE: reference to a compiler-generated field new GClass78().method_5(class114.gclass32_0.IconUrl, str2, 0UL, GClass78.GEnum4.const_0, (WebProxy)null, 0L, (byte[])null, (byte[])null, (byte)0); Image image = Image.FromFile(str2); image.Save(filename, ImageFormat.Png); image.Dispose(); GClass6.smethod_6(str2); // ISSUE: reference to a compiler-generated field string str3 = GClass128.smethod_4(class114.gclass32_0, gclass95_0); // ISSUE: reference to a compiler-generated field VDFEntry vdfEntry = new VDFEntry() { AppName = class114.gclass32_0.Name, Exe = str3, Icon = filename, Tags = new string[1] { "Wii U USB Helper" } }; foreach (string userPath in users) { List <VDFEntry> source = new List <VDFEntry>(); try { source = new List <VDFEntry>((IEnumerable <VDFEntry>)SteamManager.ReadShortcuts(userPath)); } catch { } // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated method if (!source.Any <VDFEntry>(class114.func_0 ?? (class114.func_0 = new Func <VDFEntry, bool>(class114.method_0)))) { source.Add(vdfEntry); string str4 = userPath + "\\config\\shortcuts.vdf"; System.IO.Directory.CreateDirectory(System.IO.Path.GetDirectoryName(str4)); if (System.IO.File.Exists(str4)) { System.IO.File.Copy(str4, System.IO.Path.Combine(str1, DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds.ToString()), true); } SteamManager.WriteShortcuts(source.ToArray(), str4); } } // ISSUE: reference to a compiler-generated field GClass128.smethod_2(class114.gclass32_0); } } } }
private static string smethod_8(GClass32 gclass32_0) { return(System.IO.Path.Combine(GClass128.String_0, gclass32_0.TitleId.IdRaw + ".exe")); }