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); } }
public string method_25(GClass82 gclass82_0, string string_15) { if (!Directory.Exists(this.String_8)) { Directory.CreateDirectory(this.String_8); } string str1 = ((long)DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds).ToString(); string str2 = Path.Combine(this.String_8, str1 + ".zip"); try { BackupWiiUSaves.BackupWiiUSave((GClass30)this, gclass82_0.IPAddress_0, str2); } catch { GClass6.smethod_6(str2); throw; } if (!File.Exists(str2)) { return((string)null); } using (FileStream fileStream = File.Open(str2, FileMode.Open, FileAccess.ReadWrite)) { using (ZipArchive zipArchive = new ZipArchive((Stream)fileStream, ZipArchiveMode.Update)) { using (StreamWriter streamWriter = new StreamWriter(zipArchive.CreateEntry("meta.json").Open())) { string str3 = JsonConvert.SerializeObject((object)new SaveDescription() { Description = string_15, Timestamp = str1, Region = this.Region, Name = this.Name, TitleId = this.TitleId.IdRaw }); streamWriter.Write(str3); } } } return(str2); }
public static List <GClass32> smethod_0(GClass82 gclass82_0) { List <GClass32> gclass32List = new List <GClass32>(); try { foreach (string str in new FTPConnection(gclass82_0.IPAddress_0.ToString(), "", "").method_4("/storage_usb/usr/title/00050000")) { if (str.Length == 8) { TitleId key = new TitleId("00050000" + str); if (GClass28.dictionary_0.ContainsKey(key)) { gclass32List.Add(GClass28.dictionary_0[key]); } } } } catch { } return(gclass32List); }
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(); } }
public void method_26(GClass82 gclass82_0, string string_15) { string string_0 = Path.Combine(this.String_8, string_15 + ".zip"); BackupWiiUSaves.BackupWiiUSaveZip((GClass30)this, gclass82_0.IPAddress_0, string_0); }
public void method_26(GClass82 gclass82_0, string string_15) { string string_0 = Path.Combine(this.String_8, string_15 + ".zip"); Class4.smethod_1((GClass30)this, gclass82_0.IPAddress_0, string_0); }
public void method_18(bool bool_6, GClass82 gclass82_0, bool bool_7, bool?nullable_0) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type GClass30.Class51 class51 = new GClass30.Class51(); // ISSUE: reference to a compiler-generated field class51.gclass30_0 = this; // ISSUE: reference to a compiler-generated field class51.bool_0 = bool_7; if (this.System != GEnum3.const_1) { return; } this.CurrentlyUploaded = true; if (bool_6 && !this.method_20()) { // ISSUE: reference to a compiler-generated field EventHandler <GClass81> eventHandler0 = this.eventHandler_0; if (eventHandler0 == null) { return; } eventHandler0((object)this, new GClass81("Download Corrupted", true, GEnum5.const_5)); } else { // ISSUE: reference to a compiler-generated field class51.string_0 = this.String_6 + (this.CfwOnly ? " (CFW ONLY)" : ""); // ISSUE: reference to a compiler-generated field class51.long_1 = ((IEnumerable <FileInfo>) new DirectoryInfo(this.OutputPath).GetFiles()).Sum <FileInfo>((Func <FileInfo, long>)(fileInfo_0 => fileInfo_0.Length)); // ISSUE: reference to a compiler-generated field string string_4 = Path.Combine("/sd/Install/", class51.string_0); this.class60_0 = new Class60(gclass82_0.IPAddress_0.ToString(), "anonymous", ""); if (!this.class60_0.method_1()) { // ISSUE: reference to a compiler-generated field EventHandler <GClass81> eventHandler0 = this.eventHandler_0; if (eventHandler0 == null) { return; } eventHandler0((object)this, new GClass81("Could not connect to the WIIU", true, GEnum5.const_1)); } else { if (nullable_0.HasValue) { this.class60_0.method_13(nullable_0.Value); } this.class60_0.method_2("/sd/Install/"); this.class60_0.method_2(string_4); // ISSUE: reference to a compiler-generated method this.class60_0.Event_1 += new EventHandler(class51.method_0); // ISSUE: reference to a compiler-generated field class51.long_0 = 0L; // ISSUE: reference to a compiler-generated field class51.dateTime_0 = DateTime.Now; // ISSUE: reference to a compiler-generated field class51.ulong_0 = 0UL; // ISSUE: reference to a compiler-generated method this.class60_0.Event_0 += new EventHandler <long>(class51.method_1); try { this.class60_0.method_14(string_4, this.OutputPath); } catch (Exception ex) { // ISSUE: reference to a compiler-generated field EventHandler <GClass81> eventHandler0 = this.eventHandler_0; if (eventHandler0 == null) { return; } eventHandler0((object)this, new GClass81(ex.Message, true, GEnum5.const_4)); } } } }