public void method_7() { try { int driverVersion = Dokan.DriverVersion; } catch (Exception ex1) { if (ex1.Message.Contains("dokan1.dll")) { int num1 = (int)RadMessageBox.Show("You must install an additional component to use mods. Press 'Ok' to continue."); Class67.smethod_7("dokan.exe"); try { int driverVersion = Dokan.DriverVersion; } catch (Exception ex2) { if (!ex2.Message.Contains("dokan1.dll")) { return; } int num2 = (int)RadMessageBox.Show("USB Helper was not able to detect the required component. Try rebooting your computer."); throw; } } else { throw; } } }
private static void smethod_16(MemoryStream memoryStream_0) { MemoryStream memoryStream = new MemoryStream(); using (AesCryptoServiceProvider cryptoServiceProvider = new AesCryptoServiceProvider()) { cryptoServiceProvider.Mode = CipherMode.CBC; cryptoServiceProvider.Key = Class67.smethod_15(); cryptoServiceProvider.IV = Class67.smethod_15(); byte[] buffer = new byte[512]; using (CryptoStream cryptoStream = new CryptoStream((Stream)memoryStream_0, cryptoServiceProvider.CreateDecryptor(), CryptoStreamMode.Read)) { int count; do { count = cryptoStream.Read(buffer, 0, 512); memoryStream.Write(buffer, 0, count); Class67.int_0 = 0; }while (count > 0); } for (int index = 0; index < 16; ++index) { cryptoServiceProvider.IV[index] = (byte)0; cryptoServiceProvider.Key[index] = (byte)0; } } Class67.zipArchive_0 = new ZipArchive((Stream)memoryStream); }
private static void smethod_18() { if (Class67.zipArchive_0 != null) { return; } string path = Path.Combine(GClass88.DirectoryCache, "etag"); string str = Path.Combine(GClass88.DirectoryCache, "db"); string string_2 = GClass6.Get_URL_File_Metadata(Class67.DataV6URL); if (System.IO.File.Exists(path) && System.IO.File.Exists(str)) { if (!(System.IO.File.ReadAllText(path) != string_2) && new FileInfo(str).Length != 0L) { using (MemoryStream memoryStream_0 = new MemoryStream(System.IO.File.ReadAllBytes(str))) Class67.smethod_16(memoryStream_0); } else { Class67.smethod_17(string_2); } } else { Class67.smethod_17(string_2); } }
internal static void smethod_10() { if (GClass27.InSysDir("msvcp140.dll")) { return; } Class67.smethod_7("vcredist_x642015.exe"); }
public static void JSON_Game_Custom_Injection_Import(string string_2) { Class67.smethod_18(); foreach (DbRow dbRow in JsonConvert.DeserializeObject <IEnumerable <DbRow> >(Class67.zipArchive_0.GetEntry(string_2).smethod_7()).Where <DbRow>((Func <DbRow, bool>)(dbRow_0 => !dbRow_0.PreLoad))) { GClass28.dictionary_2.Add(dbRow.TitleId, dbRow); } }
internal static void CheckOrInstallDirectXRuntime() { if (GClass27.InSysDir("xinput1_3.dll") && (!Environment.Is64BitOperatingSystem || GClass27.InWinSysWOW64("xinput1_3.dll"))) { return; } Class67.smethod_7("dxwebsetup.exe"); }
internal static void smethod_4() { if (GClass27.smethod_2("xinput1_3.dll") && (!Environment.Is64BitOperatingSystem || GClass27.smethod_3("xinput1_3.dll"))) { return; } Class67.smethod_7("dxwebsetup.exe"); }
private static void smethod_8(string string_2, string string_3, string string_4) { if (GClass27.InSysDir(string_2) && (!Environment.Is64BitOperatingSystem || GClass27.InWinSysWOW64(string_2))) { return; } Class67.smethod_7(string_3); Class67.smethod_7(string_4); }
private static void smethod_17(string string_2) { string string_0_1 = Path.Combine(GClass88.DirectoryCache, "etag"); string string_0_2 = Path.Combine(GClass88.DirectoryCache, "db"); using (MemoryStream memoryStream_0 = new MemoryStream(new GClass78().DownloadFile(Class67.DataV6URL))) Class67.smethod_16(memoryStream_0); GClass6.smethod_6(string_0_1); GClass6.smethod_6(string_0_2); }
private static void smethod_17(string string_2) { string string_0_1 = Path.Combine(GClass88.CachePath, "etag"); string string_0_2 = Path.Combine(GClass88.CachePath, "db"); using (MemoryStream memoryStream_0 = new MemoryStream(new GClass78().method_2(Class67.String_5))) Class67.smethod_16(memoryStream_0); GClass6.smethod_6(string_0_1); GClass6.smethod_6(string_0_2); }
public string method_7(string string_0, int int_1 = 604800) { try { return(this.method_6(Class67.smethod_1(string_0, int_1))); } catch (Exception ex) { return(""); } }
public string Download_Metadata_From_Nintendo_as_XML(string URL, int int_1 = 604800) { try { return(this.Download_File_UTF8(Class67.smethod_1(URL, int_1))); } catch (Exception ex) { return(""); } }
public static void JSON_DLC_Import(string string_2) { Class67.smethod_18(); foreach (DbRow dbRow in JsonConvert.DeserializeObject <IEnumerable <DbRow> >(Class67.zipArchive_0.GetEntry(string_2).smethod_7())) { if (!GClass28.dictionary_1.ContainsKey(dbRow.TitleId)) { GClass28.dictionary_1.Add(dbRow.TitleId, new GClass80.GStruct4() { dataSize_0 = dbRow.Size, titleId_0 = dbRow.TitleId }); } } }
public static void JSON_Update_Import(string string_2) { Class67.smethod_18(); foreach (DbRow dbRow in JsonConvert.DeserializeObject <IEnumerable <DbRow> >(Class67.zipArchive_0.GetEntry(string_2).smethod_7())) { if (!GClass28.dictionary_3.ContainsKey(dbRow.TitleId)) { GClass28.dictionary_3.Add(dbRow.TitleId, new List <GClass80.GStruct5>()); } GClass28.dictionary_3[dbRow.TitleId].Add(new GClass80.GStruct5() { dataSize_0 = dbRow.Size, titleId_0 = dbRow.TitleId, string_0 = dbRow.Version }); } }
public void method_2(string string_2, string string_3, string string_4) { if (string_2 == null) { return; } string str = Path.Combine(Path.GetDirectoryName(string_2), Convert.ToBase64String(Encoding.UTF8.GetBytes(string_3 + " " + string_4 + " " + this.gclass30_0.TitleId.IdRaw))); GClass6.smethod_6(str); System.IO.File.Move(string_2, str); string text = Class67.smethod_14(str, string.Format("{0}/saves/upload_save_b64.php", (object)Class67.String_1)); if (!(text != "OK")) { return; } int num = (int)RadMessageBox.Show(text); }
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 { } }
private void cmdUploadSave_Click(object sender, EventArgs e) { string string_2 = this.gclass32_0.method_14(false).vmethod_0(); if (string_2 == null) { int num1 = (int)RadMessageBox.Show("An error occured while trying to compile your save. Do you have a local save to share?"); } else { frmCommunitySaveDescription communitySaveDescription = new frmCommunitySaveDescription(); if (communitySaveDescription.ShowDialog() != DialogResult.OK) { int num2 = (int)RadMessageBox.Show("The process was cancelled."); } else { string str = Class67.smethod_14(string_2, string.Format("{0}/communitysaves/upload.php", (object)Class67.CloudWiiUUSBHelperURL)); if (str.Length != 32) { int num3 = (int)RadMessageBox.Show("An error occured while uploading your save."); } else if (GClass6.smethod_20(string.Format("{0}/communitysaves/add.php", (object)Class67.CloudWiiUUSBHelperURL), new NameValueCollection() { { "titleid", this.gclass32_0.TitleId.IdRaw }, { "md5", str }, { "description", communitySaveDescription.Description } }) == "Ok") { int num4 = (int)RadMessageBox.Show("Thank you for your contribution!"); this.method_0(); } else { int num5 = (int)RadMessageBox.Show("Your save could not be added. Perhaps a similar save already exists?"); } } } }
public void method_0() { string str = ""; try { str = System.IO.File.ReadAllText(Path.Combine(this.String_4, "etag")); } catch { } string contents = GClass6.smethod_14(this.String_0); if (this.Boolean_0 && !(str != contents)) { return; } Class67.smethod_3(this); if (!this.Boolean_0) { return; } System.IO.File.WriteAllText(Path.Combine(this.String_4, "etag"), contents); }
public void CheckWebForEmulatorUpdate() { string Current_Emulator_Metadata = ""; try { Current_Emulator_Metadata = System.IO.File.ReadAllText(Path.Combine(this.Root_BIN_Path, "etag")); } catch { } string Downloaded_Emulator_File_Metadata = GClass6.Get_URL_File_Metadata(this.Get_Emulator_Web_Location); if (this.Boolean_0 && !(Current_Emulator_Metadata != Downloaded_Emulator_File_Metadata)) { return; } Class67.smethod_3(this); if (!this.Boolean_0) { return; } System.IO.File.WriteAllText(Path.Combine(this.Root_BIN_Path, "etag"), Downloaded_Emulator_File_Metadata); }
public void method_6() { this.Boolean_1 = false; Class67.smethod_6(); this.PrepareRomIfNecessary(true); }
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 frmFaq_Load(object sender, EventArgs e) { this.FAQ_As_List = Class67.Deserialize_FAQ(); this.method_0(); }
private void frmFaq_Load(object sender, EventArgs e) { this.list_0 = Class67.smethod_0(); this.method_0(); }
public byte[] method_3(string string_0) { return(this.method_2(Class67.smethod_1(string_0, 7200))); }
internal static void smethod_6() { Class67.smethod_8("msvcr120.dll", "vcredist_x86.exe", "vcredist_x64.exe"); }
internal static void smethod_9() { Class67.smethod_8("msvcr110.dll", "vcredist_x862012.exe", "vcredist_x642012.exe"); }
public byte[] method_3(string string_0) { return(this.DownloadFile(Class67.smethod_1(string_0, 7200))); }