public static Color smethod_0(GClass30 gclass30_0) { if (gclass30_0.DiscOnly) { return(Color.LightGoldenrodYellow); } if (gclass30_0.GEnum2_0 == GEnum2.const_2) { return(Color.Green); } if (gclass30_0.GEnum2_0 == GEnum2.const_1) { return(Color.DarkOrange); } if (gclass30_0.GEnum2_0 != GEnum2.const_0) { return(Color.Black); } if (gclass30_0.Boolean_0) { return(Color.Violet); } if (ThemeResolutionService.ApplicationThemeName.Contains("Dark")) { return(Color.White); } return(Color.Black); }
public Class130(string string_1, ulong ulong_1, GClass30 gclass30_1, Action action_1) { this.Name = string_1; this.Size = ulong_1; this.action_0 = action_1; this.CorrespondingTitle = gclass30_1; }
private static void smethod_6(GClass30 gclass30_0, string string_0, string string_1, string string_2, string string_3, string string_4, string string_5) { string str1 = System.IO.Path.Combine(string_1, gclass30_0.TitleId.IdRaw + ".lnk"); string str2 = System.IO.Path.Combine(string_1, string_0 + ".lnk"); // ISSUE: variable of a compiler-generated type WshShell instance = (WshShell)Activator.CreateInstance(Marshal.GetTypeFromCLSID(new Guid("72C24DD5-D70A-438B-8A42-98424B88AFB8"))); // ISSUE: reference to a compiler-generated field if (GClass128.Class113.callSite_0 == null) { // ISSUE: reference to a compiler-generated field GClass128.Class113.callSite_0 = CallSite <Func <CallSite, object, IWshShortcut> > .Create(Binder.Convert(CSharpBinderFlags.ConvertExplicit, typeof(IWshShortcut), typeof(GClass128))); } // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated method // ISSUE: variable of a compiler-generated type IWshShortcut wshShortcut = GClass128.Class113.callSite_0.Target((CallSite)GClass128.Class113.callSite_0, instance.CreateShortcut(str1)); wshShortcut.Arguments = string_5; wshShortcut.Description = string_4; wshShortcut.IconLocation = string_3; wshShortcut.TargetPath = string_2; wshShortcut.WorkingDirectory = System.IO.Path.GetDirectoryName(string_2); // ISSUE: reference to a compiler-generated method wshShortcut.Save(); GClass6.smethod_6(str2); Alphaleonis.Win32.Filesystem.File.Move(str1, str2); GClass128.SHChangeNotify(134217728, 4096, IntPtr.Zero, IntPtr.Zero); }
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."); } }
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); }
private GClass99 method_11(GClass30 gclass30_0) { this.method_17("Fetching Ticket..."); string str = Path.Combine(gclass30_0.OutputPath, "title.tik"); if (gclass30_0.Platform != Platform.Wii_U_Custom && (!(gclass30_0 is GClass33) || gclass30_0.System != SystemType.SystemWiiU)) { if (!gclass30_0.bool_0) { this.method_17("Generating ticket"); System.IO.File.WriteAllBytes(str, gclass30_0.TicketArray); return(gclass30_0.Ticket); } this.method_17("Downloading ticket from that site"); byte[] bytes = System.IO.File.ReadAllBytes(Path.Combine(Path.Combine(GClass88.DirectoryCache, "tickets"), gclass30_0.TitleId.IdRaw + ".tik")); gclass30_0.TicketArray = bytes; System.IO.File.WriteAllBytes(str, bytes); gclass30_0.Ticket = GClass99.smethod_7(gclass30_0.TicketArray, gclass30_0.System); return(gclass30_0.Ticket); } this.method_17("Downloading Ticket from NUS"); this.gclass78_0.method_5(string.Format("{0}cetk", (object)gclass30_0.CDN_URL_PLUS_TITLEID), str, 0UL, GClass78.GEnum4.const_0, this.Proxy, 0L, (byte[])null, (byte[])null, (byte)0); gclass30_0.TicketArray = System.IO.File.ReadAllBytes(str); gclass30_0.Ticket = GClass99.smethod_6(str, gclass30_0.System); return(gclass30_0.Ticket); }
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); } }
public Class9(GClass30 gclass30_1) { if (gclass30_1.System != GEnum3.const_1) { throw new Exception("This can only be used on WUP titles."); } this.gclass30_0 = gclass30_1; }
public static void smethod_0(GClass30 gclass30_0) { if (!GClass3.list_0.Contains(gclass30_0.TitleId.IdRaw)) { GClass3.list_0.Add(gclass30_0.TitleId.IdRaw); } GClass3.smethod_2(); }
public static void smethod_1(GClass30 gclass30_0) { if (GClass3.list_0.Contains(gclass30_0.TitleId.IdRaw)) { GClass3.list_0.Remove(gclass30_0.TitleId.IdRaw); } GClass3.smethod_2(); }
public Class9(GClass30 gclass30_1) { if (gclass30_1.System != SystemType.SystemWiiU) { throw new Exception("This can only be used on WUP titles."); } this.gclass30_0 = gclass30_1; }
public string method_12() { if (this is GClass32) { return(string.Format("{0} [{1}]", (object)GClass30.smethod_2(this.Name), (object)((GClass32)this).ProductId)); } return(string.Format("{0} (unpacked)", (object)GClass30.smethod_2(this.ToString()))); }
public static bool smethod_0(this RadListView radListView_0, GClass30 gclass30_0) { // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method return(radListView_0.Items.Any <ListViewDataItem>(new Func <ListViewDataItem, bool>(new GClass20.Class29() { gclass30_0 = gclass30_0 }.method_0))); }
private static void smethod_3(IEnumerable <DirectoryInfo> ienumerable_0) { foreach (DirectoryInfo directoryInfo in ienumerable_0.Where <DirectoryInfo>((Func <DirectoryInfo, bool>)(directoryInfo_0 => { ulong result; if (directoryInfo_0.Name.Length == 16 && ulong.TryParse(directoryInfo_0.Name, NumberStyles.HexNumber, (IFormatProvider)CultureInfo.CurrentCulture, out result) && !directoryInfo_0.FullName.Contains("EMULATORS")) { return(!directoryInfo_0.FullName.Contains("SAVES")); } return(false); }))) { TitleId index = new TitleId(directoryInfo.Name); GClass30 gclass30 = (GClass30)null; try { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type GClass26.Class36 class36 = new GClass26.Class36(); switch (index.IdType) { case DownloadType.Update: TMDExcractionAndProcessing gclass100 = TMDExcractionAndProcessing.smethod_0(Path.Combine(directoryInfo.FullName, "title.tmd"), SystemType.SystemWiiU); // ISSUE: reference to a compiler-generated field class36.ushort_0 = gclass100.TitleVersion; // ISSUE: reference to a compiler-generated method gclass30 = (GClass30)GClass28.dictionary_0[index.FullGame].Updates.First <GClass33>(new Func <GClass33, bool>(class36.method_0)); break; case DownloadType.GameWiiOrU: gclass30 = (GClass30)GClass28.dictionary_0[index]; break; case DownloadType.DLC: gclass30 = (GClass30)GClass28.dictionary_0[index.FullGame].Dlc; break; case DownloadType.Game3DS: gclass30 = (GClass30)GClass28.dictionary_0[index]; break; } } catch { continue; } try { FileSystem.MoveDirectory(directoryInfo.FullName, gclass30.OutputPath); } catch { } } }
public FrmFtpProgress(GClass30 gclass30_0) { this.InitializeComponent(); this.pctIcon.ImageLocation = gclass30_0.GClass32_0.IconUrl; this.title.Text = gclass30_0.Name; using (GraphicsPath path = new GraphicsPath()) { path.AddEllipse(new Rectangle(0, 0, this.pctIcon.Width - 1, this.pctIcon.Height - 1)); this.pctIcon.Region = new Region(path); } }
public static void smethod_2(GClass30 gclass30_0) { if (gclass30_0.GEnum2_0 != GEnum2.const_2) { throw new Exception("The title must have been downloaded!"); } foreach (GClass101 gclass101 in TMDExcractionAndProcessing.ReadTMDBytes(File.ReadAllBytes(Path.Combine(gclass30_0.OutputPath, "title.tmd")), SystemType.System3DS).GClass101_0) { string string_0 = Path.Combine(gclass30_0.OutputPath, gclass101.ContentId.ToString("x8") + ".app"); Class85.smethod_6(string_0, string_0 + ".dec", gclass30_0.byte_0, Class85.smethod_9(gclass101.Index)); } }
public bool method_29(GClass30 gclass30_0) { if (gclass30_0 == this || this.AreThereUpdates && gclass30_0 == this.Updates.Last <GClass33>()) { return(true); } if (this.Boolean_2) { return(gclass30_0 == this.Dlc); } return(false); }
public frmShortcutType(GClass30 gclass30_1) { this.InitializeComponent(); this.gclass30_0 = gclass30_1; try { this.cmdSteam.Enabled = Directory.Exists(SteamManager.GetSteamFolder()); } catch { this.cmdSteam.Enabled = false; } }
private void method_2(object sender, FileSystemEventArgs e) { try { if (!(GClass30.smethod_3(e.Name) != e.Name)) { return; } this.method_4(Path.GetPathRoot(e.FullPath)); } catch { } }
public static int smethod_1(GClass82 gclass82_0, GClass30 gclass30_0) { try { byte[] bytes = new FTPConnection(gclass82_0.IPAddress_0.ToString(), "", "").method_7(string.Format("/storage_usb/usr/title/0005000e/{0}/meta/meta.xml", (object)gclass30_0.TitleId.High.ToLower())); XmlDocument xmlDocument = new XmlDocument(); string xml = Encoding.UTF8.GetString(bytes).Trim('\xFEFF'); xmlDocument.LoadXml(xml); return(int.Parse(xmlDocument.SelectSingleNode("/menu[@type=\"complex\"]/title_version[@type=\"unsignedInt\"]/text()").Value)); } catch { return(-1); } }
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 static void BackupWiiUSaveZip(GClass30 gclass30_0, IPAddress ipaddress_0, string string_0) { if (gclass30_0.TitleId.IdType != DownloadType.GameWiiOrU) { throw new Exception("You can only backup game saves!"); } if (gclass30_0.System != SystemType.SystemWiiU) { throw new Exception("Save backup is only compatible with Wii U Games"); } using (FileStream fileStream = System.IO.File.Open(string_0, FileMode.Open)) { using (ZipArchive zipArchive_0 = new ZipArchive((Stream)fileStream, ZipArchiveMode.Read)) new FTPConnection(ipaddress_0.ToString(), "anonymous", "").FTP_UploadZIP("/storage_usb/usr/save/00050000/" + gclass30_0.TitleId.High.ToLower() + "/", zipArchive_0); } }
public static void smethod_1(GClass30 gclass30_0, IPAddress ipaddress_0, string string_0) { if (gclass30_0.TitleId.IdType != GEnum1.const_1) { throw new Exception("You can only backup game saves!"); } if (gclass30_0.System != GEnum3.const_1) { throw new Exception("Save backup is only compatible with Wii U Games"); } using (FileStream fileStream = System.IO.File.Open(string_0, FileMode.Open)) { using (ZipArchive zipArchive_0 = new ZipArchive((Stream)fileStream, ZipArchiveMode.Read)) new Class60(ipaddress_0.ToString(), "anonymous", "").method_15("/storage_usb/usr/save/00050000/" + gclass30_0.TitleId.High.ToLower() + "/", zipArchive_0); } }
protected override void SynchronizeProperties() { base.SynchronizeProperties(); this.Text = ""; this.lightVisualElement_0.Location = new Point(this.Parent.Bounds.Width - 40, 0); this.lightVisualElement_1.Location = new Point(this.Parent.Bounds.Width - 65, 0); this.gclass30_0 = (GClass30)this.Data.Tag; if (this.gclass30_0 is GClass32) { this.lightVisualElement_2.Text = (this.gclass30_0 as GClass32).method_30(); } else { this.lightVisualElement_2.Text = this.gclass30_0.ToString(); } this.Image = this.Data.Image; this.lightVisualElement_2.Location = new Point(50, 0); }
public static void BackupWiiUSave(GClass30 gclass30_0, IPAddress ipaddress_0, string string_0) { if (gclass30_0.TitleId.IdType != DownloadType.GameWiiOrU) { throw new Exception("You can only backup game saves!"); } if (gclass30_0.System != SystemType.SystemWiiU) { throw new Exception("Save backup is only compatible with Wii U Games"); } FTPConnection class60 = new FTPConnection(ipaddress_0.ToString(), "anonymous", ""); if (!class60.method_4("/storage_usb/usr/save/00050000/").Contains(gclass30_0.TitleId.High.ToLower())) { throw new GException0(); } class60.method_5("/storage_usb/usr/save/00050000/" + gclass30_0.TitleId.High.ToLower() + "/", string_0); }
public static void smethod_0(GClass30 gclass30_0, IPAddress ipaddress_0, string string_0) { if (gclass30_0.TitleId.IdType != GEnum1.const_1) { throw new Exception("You can only backup game saves!"); } if (gclass30_0.System != GEnum3.const_1) { throw new Exception("Save backup is only compatible with Wii U Games"); } Class60 class60 = new Class60(ipaddress_0.ToString(), "anonymous", ""); if (!class60.method_4("/storage_usb/usr/save/00050000/").Contains(gclass30_0.TitleId.High.ToLower())) { throw new GException0(); } class60.method_5("/storage_usb/usr/save/00050000/" + gclass30_0.TitleId.High.ToLower() + "/", string_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); }
internal GClass95(GClass30 gclass30_1, string string_2, string string_3, bool bool_3 = true, bool bool_4 = false) { this.gclass30_0 = gclass30_1; this.FullScreen = bool_4; this.Name = string_2; try { if (!Directory.Exists(this.String_6)) { Directory.CreateDirectory(this.String_6); } } catch (Exception ex) { int num = (int)RadMessageBox.Show("An error occured while initializing the emulators. Most likely you have unplugged the drive on which your games are stored. The emulation settings will now be cleared and the application will close.\n" + ex.ToString()); try { GClass6.smethod_5(Path.Combine(GClass17.string_0)); } catch { } Environment.Exit(0); return; } if (!Directory.Exists(this.String_5)) { Directory.CreateDirectory(this.String_5); } if (!Directory.Exists(this.String_4)) { Directory.CreateDirectory(this.String_4); } this.Url = string_3; this.bool_0 = bool_3; if (!bool_3) { return; } this.method_1(); }
private static bool smethod_10(GClass30 gclass30_0, GClass101 gclass101_0, byte[] byte_1) { string str = Path.Combine(gclass30_0.OutputPath, gclass101_0.ContentId.ToString("x8") + ".app"); byte[] numArray = Class85.smethod_9(gclass101_0.Index); byte[] byte_0; if (gclass30_0.System != SystemType.SystemWiiU && gclass30_0.System != SystemType.SystemWii) { if (gclass30_0.System != SystemType.System3DS) { throw new NotImplementedException(); } byte_0 = Class85.smethod_3(str, byte_1, numArray); } else { byte[] array = File.ReadAllBytes(str); Array.Resize <byte>(ref array, GClass27.smethod_0(array.Length, 16)); byte_0 = SHA1.Create().ComputeHash(Class85.smethod_5(array, byte_1, numArray), 0, (int)gclass101_0.ContentSize.TotalBytes); } return(GClass27.smethod_1(byte_0, gclass101_0.Hash)); }
private GClass80.Enum1 method_10(GClass30 gclass30_0, GClass101 gclass101_0, string string_0, GClass80.Enum0 enum0_0, ulong ulong_1 = 0) { string str = gclass101_0.ContentId.ToString("x8") + (enum0_0 == GClass80.Enum0.const_0 ? ".h3" : ""); this.method_17(string.Format("Downloading of {0} initiated.", (object)str)); if (this.Proxy != null) { this.method_17(string.Format("Using proxy {0}", (object)this.Proxy.Address)); } if (enum0_0 == GClass80.Enum0.const_0) { this.gclass78_0.method_5(gclass30_0.CDN_URL_PLUS_TITLEID + str, string_0 + ".h3", ulong_1, GClass78.GEnum4.const_0, this.Proxy, 0L, (byte[])null, (byte[])null, (byte)0); } else if (gclass101_0.Boolean_0) { this.gclass78_0.method_5(gclass30_0.CDN_URL_PLUS_TITLEID + str, string_0 + ".app", ulong_1, GClass78.GEnum4.const_1, this.Proxy, (long)gclass101_0.ContentSize.TotalBytes, System.IO.File.ReadAllBytes(string_0 + ".h3"), gclass30_0.Ticket.Byte_0, (byte)gclass101_0.Index); } else { this.gclass78_0.method_5(gclass30_0.CDN_URL_PLUS_TITLEID + str, string_0 + ".app", ulong_1, GClass78.GEnum4.const_0, this.Proxy, (long)gclass101_0.ContentSize.TotalBytes, (byte[])null, (byte[])null, (byte)0); } return(!this.gclass78_0.bool_1 ? GClass80.Enum1.const_1 : GClass80.Enum1.const_0); }