public static void smethod_0(string string_4, string string_5, string string_6, string string_7, string string_8, string string_9, bool bool_0, byte[] byte_0, byte[] byte_1, byte[] byte_2, GStruct2 gstruct2_0, Action <int> action_0 = null) { ServicePointManager.ServerCertificateValidationCallback += (RemoteCertificateValidationCallback)((object_0, x509Certificate_0, x509Chain_0, sslPolicyErrors_0) => true); ServicePointManager.DefaultConnectionLimit = 8; GClass26.string_0 = string_5; GClass26.string_1 = string_6; GClass26.string_2 = string_7; GClass88.Check_For_Create_Cache_Dir(GClass26.string_0); Directory.CreateDirectory(GClass17.string_0); Class67.WiiU_USB_Helper_Domain = string_8; GClass28.string_5 = Class67.smethod_22(); GClass28.list_2 = Class67.smethod_2(); GClass28.string_4 = string_4; GClass28.dictionary_0.Clear(); GClass28.list_6.Clear(); GClass28.dictionary_3.Clear(); GClass28.dictionary_1.Clear(); GClass28.dictionary_2.Clear(); GClass30.smethod_0(); Class67.smethod_13(); Class67.JSON_Game_Custom_Injection_Import("out/games.json"); Class67.JSON_Game_Custom_Injection_Import("out/customs.json"); Class67.JSON_Game_Custom_Injection_Import("out/injections.json"); Class67.JSON_Game_Custom_Injection_Import("out/games3ds.json"); Class67.JSON_Game_Custom_Injection_Import("out/gamesWii.json"); Class67.JSON_Update_Import("out/updates.json"); Class67.JSON_Update_Import("out/updates3ds.json"); Class67.JSON_DLC_Import("out/dlcs.json"); Class67.JSON_DLC_Import("out/dlcs3ds.json"); if (!bool_0) { try { GClass26.smethod_5(byte_0); } catch { Settings.Default.TicketsPath = ""; Settings.Default.TicketsPath3DS = ""; Settings.Default.TicketsPathWii = ""; int num = (int)RadMessageBox.Show("The application was unable to parse the specified archive. The app will now restart. Please specify another archive or use the title key site instead (recommended)"); Settings.Default.Save(); Application.Restart(); return; } } else { string string_4_1 = ""; string string_5_1 = ""; string string_6_1 = ""; if (byte_0 != null) { string_4_1 = Encoding.UTF8.GetString(byte_0); } if (byte_1 != null) { string_5_1 = Encoding.UTF8.GetString(byte_1); } if (byte_2 != null) { string_6_1 = Encoding.UTF8.GetString(byte_2); } GClass26.smethod_6(string_4_1, string_5_1, string_6_1); } if (GClass28.dictionary_0.Count == 0) { throw new Exception("No titles available. Please check your ticket source."); } foreach (GClass32 gclass32 in GClass28.dictionary_0.Values) { foreach (GClass31 gclass31 in GClass28.list_6) { if (!(gclass32.TitleId.High != gclass31.TitleId.High) && gclass32.System == gclass31.System) { gclass31.Name = gclass32.Name; gclass32.Dlc = gclass31; break; } } } if (GClass88.Check_If_Exists_In_Cache_Dir("lasttitles")) { // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method GClass28.NewTitles = GClass28.dictionary_0.Values.Where <GClass32>(new Func <GClass32, bool>(new GClass26.Class34() { string_0 = GClass88.smethod_7("lasttitles") }.method_0)).ToList <GClass32>(); } GClass88.smethod_10("lasttitles", GClass28.dictionary_0.Values.Select <GClass32, string>((Func <GClass32, string>)(gclass32_0 => gclass32_0.TitleId.IdRaw)).ToArray <string>()); if (GClass88.Check_If_Exists_In_Cache_Dir("lastUpdates")) { // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method GClass28.NewUpdates = GClass28.dictionary_0.Values.Where <GClass32>((Func <GClass32, bool>)(gclass32_0 => { if (gclass32_0.Boolean_5) { return(gclass32_0.AreThereUpdates); } return(false); })).Select <GClass32, GClass33>((Func <GClass32, GClass33>)(gclass32_0 => gclass32_0.Updates.Last <GClass33>())).Where <GClass33>(new Func <GClass33, bool>(new GClass26.Class35() { string_0 = GClass88.smethod_7("lastUpdates") }.method_0)).ToList <GClass33>(); } GClass88.smethod_10("lastUpdates", GClass28.dictionary_0.Values.Where <GClass32>((Func <GClass32, bool>)(gclass32_0 => { if (!gclass32_0.AreThereUpdates) { return(false); } if (!gclass32_0.Boolean_5) { return(gclass32_0.Boolean_1); } return(true); })).Select <GClass32, string>((Func <GClass32, string>)(gclass32_0 => gclass32_0.Updates.Last <GClass33>().ToString())).ToArray <string>()); try { GClass26.smethod_3((IEnumerable <DirectoryInfo>) new DirectoryInfo(Path.Combine(string_4, "DATA_3DS")).GetDirectories("*.*", System.IO.SearchOption.AllDirectories)); } catch { } GClass26.smethod_1("http://wiiu.titlekeys.gq/rss"); GClass26.smethod_1("http://3ds.titlekeys.gq/rss"); GClass3.smethod_4(); GClass28.dictionary_1.Clear(); GClass28.dictionary_2.Clear(); GClass28.dictionary_3.Clear(); GClass28.string_5 = (string[])null; }
private void method_0() { this.gclass95_0 = this.gclass32_0.method_14(false); if (this.gclass95_0 == null) { int num = (int)RadMessageBox.Show("This title does not support emulation, so there is nothing to show here!"); this.Close(); } else { this.lblEmuName.Text = this.gclass95_0.Name; this.lblEmuPath.Text = this.gclass95_0.String_4; this.lblEmuStatus.Text = frmEmuInfo.smethod_0(this.gclass95_0.Boolean_0); this.lblGameStatus.Text = frmEmuInfo.smethod_0(this.gclass95_0.Boolean_2); this.lblUpdateStatus.Text = frmEmuInfo.smethod_0(this.gclass95_0.UpdateIsInstalled()); this.lblDLCStatus.Text = frmEmuInfo.smethod_0(this.gclass95_0.DlcIsInstalled()); this.bool_0 = true; if (this.gclass32_0.Boolean_2) { this.chkExceptionDLC.Checked = GClass3.smethod_3((GClass30)this.gclass32_0.Dlc); } else { this.chkExceptionDLC.Enabled = false; } if (this.gclass32_0.Boolean_3) { this.chkExceptionUpdate.Checked = GClass3.smethod_3((GClass30)this.gclass32_0.Updates[0]); } else { this.chkExceptionUpdate.Enabled = false; } this.bool_0 = false; this.lblUpdateVersion.Text = string.Format("v{0}", (object)this.gclass95_0.GetUpdateVersion()); bool flag = this.gclass32_0.method_14(false) is Cemu; this.cmdVerifyGame.Visible = flag && this.gclass95_0.Boolean_2; this.cmdVerifyUpdate.Visible = flag && this.gclass95_0.UpdateIsInstalled(); this.cmdVerifyDlc.Visible = flag && this.gclass95_0.DlcIsInstalled(); this.cmdDeleteGame.Enabled = this.gclass95_0.Boolean_2; this.cmdDeleteUpdate.Enabled = this.gclass95_0.UpdateIsInstalled(); this.cmdDeleteDlc.Enabled = this.gclass95_0.DlcIsInstalled(); this.pictGame.Image = this.gclass32_0.gclass86_2.Image; foreach (object control1 in (ArrangedElementCollection)this.radGroupBox1.Controls) { if (control1 is RadGroupBox) { foreach (object control2 in (ArrangedElementCollection)((Control)control1).Controls) { if (control2 is RadLabel) { RadLabel radLabel = (RadLabel)control2; string text = radLabel.Text; if (!(text == "Installed")) { if (text == "Not installed") { radLabel.ForeColor = Color.Red; } } else { radLabel.ForeColor = Color.Green; } } } } } } }