private void method_1(GClass30 gclass30_0, Cemu cemu_0) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type frmEmuInfo.Class139 class139 = new frmEmuInfo.Class139(); // ISSUE: reference to a compiler-generated field class139.gclass30_0 = gclass30_0; // ISSUE: reference to a compiler-generated field class139.cemu_0 = cemu_0; // ISSUE: reference to a compiler-generated field class139.bool_0 = false; int num1; // ISSUE: reference to a compiler-generated method FrmWait frmWait = new FrmWait("USB Helper is verifying your data...", new Action(class139.method_0), (Action <Exception>)(exception_0 => num1 = (int)RadMessageBox.Show("An error has occured.\n" + (object)exception_0))); // ISSUE: reference to a compiler-generated field if (class139.bool_0) { int num2 = (int)RadMessageBox.Show("USB Helper has detected that this title wasn't installed properly. Please delete it and try again."); } else { int num3 = (int)RadMessageBox.Show("No errors were found."); } }
public FrmWait(string string_1, bool bool_1) { this.InitializeComponent(); Class97.smethod_11((RadForm)this, 10); this.lblMessage.Text = string_1; if (bool_1) { this.Size = new Size(293, 195); } else { this.Size = new Size(293, 165); } this.timer_0 = new Timer() { Interval = 1000 }; this.timer_0.Tick += (EventHandler)((sender, e) => { if (!this.bool_0) { return; } this.method_0(); }); this.timer_0.Start(); FrmWait.smethod_1(this); this.method_1(true); }
private void FrmWait_Load(object sender, EventArgs e) { this.FormElement.TitleBar.CloseButton.Visibility = ElementVisibility.Collapsed; this.timer_1.Interval = 20; this.color_0 = this.radProgressBar1.ProgressBarElement.IndicatorElement1.BackColor; this.color_1 = FrmWait.smethod_0(this.color_0, 0.3f); this.timer_1.Start(); }
public static void smethod_7(string string_0, string string_1) { int num; // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method FrmWait frmWait = new FrmWait("USB Helper is extracting data.", new Action(new GClass27.Class39() { string_0 = string_0, string_1 = string_1 }.method_0), (Action <Exception>)(exception_0 => num = (int)RadMessageBox.Show("An error has occured.\n" + (object)exception_0))); }
public static void smethod_2(string string_2) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type Class81.Class82 class82 = new Class81.Class82(); Class81.string_1 = string_2; // ISSUE: reference to a compiler-generated field class82.byte_0 = Class81.smethod_5(Path.Combine(Class81.string_1, "hif_000000.nfs")); // ISSUE: reference to a compiler-generated field class82.string_0 = Path.Combine(Class81.string_1, "hif_unpack.nfs"); int num; // ISSUE: reference to a compiler-generated method FrmWait frmWait = new FrmWait("Please wait while USB Helper converts this game...", new Action(class82.method_0), (Action <Exception>)(exception_0 => num = (int)RadMessageBox.Show("An error has occured.\n" + (object)exception_0))); }
private void FrmWait_FormClosing(object sender, FormClosingEventArgs e) { this.timer_0.Stop(); this.timer_1.Stop(); try { this.font_0.Dispose(); this.privateFontCollection_0.Dispose(); FrmWait.smethod_2(this); } catch { } }
private void cmdImport_Click(object sender, EventArgs e) { foreach (ListViewDataItem listViewDataItem in this.lstTitles.Items.Where <ListViewDataItem>((Func <ListViewDataItem, bool>)(listViewDataItem_0 => listViewDataItem_0.CheckState == ToggleState.On))) { int num; // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method FrmWait frmWait = new FrmWait("USB Helper is importing your title...", new Action(new FrmImport.Class155() { frmImport_0 = this, listViewDataItem_0 = listViewDataItem }.method_0), (Action <Exception>)(exception_0 => num = (int)RadMessageBox.Show("An error has occured.\n" + (object)exception_0))); } this.DialogResult = DialogResult.OK; this.Close(); }
public List <GClass16> method_4() { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type GClass15.Class15 class15 = new GClass15.Class15(); // ISSUE: reference to a compiler-generated field class15.gclass15_0 = this; // ISSUE: reference to a compiler-generated field class15.list_0 = new List <GClass16>(); int num; // ISSUE: reference to a compiler-generated method FrmWait frmWait = new FrmWait("USB Helper is preparing your mods...", new Action(class15.method_0), (Action <Exception>)(exception_0 => num = (int)RadMessageBox.Show(exception_0.Message))); // ISSUE: reference to a compiler-generated field return(class15.list_0); }
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); } }
private static void smethod_1(FrmWait frmWait_0) { lock (FrmWait.object_0) { foreach (FrmWait frmWait in FrmWait.list_0.ToArray()) { try { frmWait.method_1(false); } catch { FrmWait.list_0.Remove(frmWait); } } FrmWait.list_0.Add(frmWait_0); } }
private static void smethod_2(FrmWait frmWait_0) { lock (FrmWait.object_0) { if (FrmWait.list_0.Contains(frmWait_0)) { FrmWait.list_0.Remove(frmWait_0); } if (FrmWait.list_0.Count <= 0) { return; } try { FrmWait.list_0.Last <FrmWait>().method_1(true); } catch { } } }
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))); }
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(); }
public bool method_14() { if (this.PatchGame == null) { throw new Exception("This game is not patchable!"); } GClass30 title = (GClass30)GClass28.dictionary_0[this.PatchGame]; if (RadMessageBox.Show(string.Format("This title is a modified version of {0}.\nUSB Helper can build an iso for you by automatically patching the game from the eShop.\nThis way you do not have to provide the iso.\nProceed? (About {1}MB will of data will be downloaded)", (object)title.Name, (object)this.PatchSize), "Proceed?", MessageBoxButtons.YesNo) != DialogResult.Yes) { return(false); } // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type GClass94.Class79 class79 = new GClass94.Class79(); if (title.GEnum2_0 != GEnum2.const_2) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type GClass94.Class80 class80 = new GClass94.Class80(); GClass80 gclass80 = new GClass80((WebProxy)null, true, true); // ISSUE: reference to a compiler-generated field class80.frmWait_0 = new FrmWait("USB Helper is downloading the base game", true); // ISSUE: reference to a compiler-generated method gclass80.Event_6 += new EventHandler <GEventArgs0>(class80.method_0); // ISSUE: reference to a compiler-generated method gclass80.Event_5 += new EventHandler <GClass81>(class80.method_1); gclass80.method_1(((IEnumerable <GClass30>) new GClass30[1] { title }).ToList <GClass30>(), 100, 10000); // ISSUE: reference to a compiler-generated field int num = (int)class80.frmWait_0.ShowDialog(); } Dolphin dolphin = new Dolphin(title, false); dolphin.method_5(); string rom = dolphin.GetRom(); // ISSUE: reference to a compiler-generated field class79.string_0 = new Alphaleonis.Win32.Filesystem.DirectoryInfo(rom).Parent.FullName; // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field class79.string_1 = Alphaleonis.Win32.Filesystem.Path.Combine(class79.string_0, "workdir.tmp"); // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field class79.string_2 = Alphaleonis.Win32.Filesystem.Path.Combine(class79.string_0, "patch.uhd"); dolphin.method_12(true); int num1; // ISSUE: reference to a compiler-generated method FrmWait frmWait1 = new FrmWait("USB Helper is preparing the game...", new Action(class79.method_0), (Action <Exception>)(exception_0 => num1 = (int)RadMessageBox.Show(exception_0.ToString()))); // ISSUE: reference to a compiler-generated field class79.frmWait_0 = new FrmWait("USB Helper is downloading the differential data", true); WebClient webClient = new WebClient(); // ISSUE: reference to a compiler-generated method webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(class79.method_1); // ISSUE: reference to a compiler-generated method webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(class79.method_2); // ISSUE: reference to a compiler-generated field webClient.DownloadFileAsync(new Uri(string.Format("{0}/res/Wii/template/{1}/patch.uhd", (object)Class67.String_2, (object)this.ToInject.ProductId)), class79.string_2); // ISSUE: reference to a compiler-generated field int num2 = (int)class79.frmWait_0.ShowDialog(); int num3; // ISSUE: reference to a compiler-generated method FrmWait frmWait2 = new FrmWait("USB HELPER is patching the game...", new Action(class79.method_3), (Action <Exception>)(exception_0 => num3 = (int)RadMessageBox.Show(exception_0.ToString()))); // ISSUE: reference to a compiler-generated field GClass6.smethod_6(class79.string_2); // ISSUE: reference to a compiler-generated field GClass6.smethod_5(class79.string_1); // ISSUE: reference to a compiler-generated field if (!this.vmethod_0(new Alphaleonis.Win32.Filesystem.DirectoryInfo(Alphaleonis.Win32.Filesystem.Path.Combine(class79.string_0, "new-image")).GetFiles()[0].FullName)) { throw new Exception("The output iso was not recognized!"); } int num4 = (int)new frmInjectionAnimation((GClass91)this).ShowDialog(); dolphin.method_12(true); // ISSUE: reference to a compiler-generated field GClass6.smethod_5(Alphaleonis.Win32.Filesystem.Path.Combine(class79.string_0, "rawFiles")); return(true); }
private void FrmWait_Shown(object sender, EventArgs e) { this.loadingCircle1.GEnum8_0 = GControl0.GEnum8.const_2; this.loadingCircle1.Color_0 = this.color_0; this.loadingCircle1.BackColor = Color.Transparent; this.loadingCircle1.Boolean_0 = true; this.loadingCircle1.Int32_0 = 20; this.loadingCircle1.Int32_2 = 30; this.loadingCircle1.Int32_1 = 40; this.loadingCircle1.Int32_4 = 2; this.loadingCircle1.Int32_3 = 60; this.loadingCircle1.SendToBack(); this.point_0 = this.loadingCircle1.Location; byte[] contb = Class123.contb; IntPtr num1 = Marshal.AllocCoTaskMem(contb.Length); Marshal.Copy(contb, 0, num1, contb.Length); uint uint_1 = 0; this.privateFontCollection_0.AddMemoryFont(num1, Class123.contb.Length); FrmWait.AddFontMemResourceEx(num1, (uint)Class123.contb.Length, IntPtr.Zero, ref uint_1); Marshal.FreeCoTaskMem(num1); this.font_0 = new Font(this.privateFontCollection_0.Families[0], 16f); using (Graphics graphics = this.CreateGraphics()) { float num2 = (float)(this.loadingCircle1.Height / 2) - this.CreateGraphics().MeasureString("WiiU USB Helper", this.font_0).Height / 2f; this.list_1 = new List <RadLabel>(); List <SizeF> source = new List <SizeF>(); foreach (char ch in "WiiU USB Helper") { source.Add(graphics.MeasureString(ch.ToString(), this.font_0)); } float num3 = (float)(this.Width / 2) - source.Sum <SizeF>((Func <SizeF, float>)(sizeF_0 => sizeF_0.Width)) / 2f; int index = 0; foreach (char ch in "WiiU USB Helper") { RadLabel radLabel1 = new RadLabel(); radLabel1.Text = ch.ToString(); radLabel1.Font = this.font_0; radLabel1.AutoSize = false; radLabel1.ForeColor = this.color_0; radLabel1.BackColor = Color.Transparent; RadLabel radLabel2 = radLabel1; radLabel2.Left = (int)num3; double num4 = (double)num3; SizeF sizeF = source[index]; double width1 = (double)sizeF.Width; num3 = (float)(num4 + width1); radLabel2.Top = (int)num2; RadLabel radLabel3 = radLabel2; sizeF = source[index]; int width2 = (int)sizeF.Width; sizeF = source[index]; int height = (int)sizeF.Height; Size size = new Size(width2, height); radLabel3.Size = size; this.Controls.Add((Control)radLabel2); radLabel2.Parent = (Control)this.loadingCircle1; this.list_1.Add(radLabel2); radLabel2.BringToFront(); ++index; } } }