public static void smethod_2() { if (!Settings.Default.Path.Contains("Program Files") || !Settings.Default.ShowProgramFilesWarning) { return; } int num = (int)RadMessageBox.Show("It appears you have chosen to store your games in Program Files. This could lead to a number of issues since this is a restricted location. It is advised that you chose another location which does not require admin privileges such as your personnal folder."); switch (RadMessageBox.Show("Would you like to set a new location now (strongly recommended)? Chosing cancel will disable future warnings.", "Problem detected", MessageBoxButtons.YesNoCancel)) { case DialogResult.Cancel: Settings.Default.ShowProgramFilesWarning = false; Settings.Default.Save(); break; case DialogResult.Yes: string str1 = Path.Combine(Settings.Default.Path, "DATA"); string str2 = Path.Combine(Settings.Default.Path, "DATA_3DS"); do { ; }while (!Class97.smethod_13(true) || !GClass6.smethod_2(Settings.Default.Path)); if (Directory.Exists(str1)) { Class97.smethod_8(str1, Settings.Default.Path); } if (!Directory.Exists(str2)) { break; } Class97.smethod_8(str2, Settings.Default.Path); break; } }
public frmInjectionAnimation(GClass91 gclass91_1) { this.InitializeComponent(); this.Region = Class97.smethod_6((Form)this, 40); this.gclass91_0 = gclass91_1; try { this.int_3 = this.pctAarrow.Left; this.timer_1.Interval = 25; this.timer_1.Start(); this.bitmap_0 = (Bitmap)Image.FromStream((Stream) new MemoryStream(new GClass78().DownloadFile(string.Format("http://art.gametdb.com/wii/disc/{0}/{1}.png", this.gclass91_0.ToInject.Region == "USA" ? (object)"US" : (object)"EN", (object)this.gclass91_0.ToInject.ProductId)))); this.bitmap_0.SetResolution(96f, 96f); this.timer_0.Interval = 30; this.timer_0.Start(); } catch { } try { this.windowsMediaPlayer_0 = (WindowsMediaPlayer) new WindowsMediaPlayerClass(); // ISSUE: method pointer this.windowsMediaPlayer_0.add_PlayStateChange(new _WMPOCXEvents_PlayStateChangeEventHandler((object)this, (UIntPtr)__methodptr(method_3))); } catch { } }
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); }
public frmSupportOver() { this.InitializeComponent(); Class97.smethod_11((RadForm)this, 10); try { if (!string.IsNullOrEmpty(Settings.Default.CloudUserName)) { this.lblCloudCredentials.Text = string.Format("As a reminder, here are your Wii U USB Helper Cloud credentials :\nUsername: {0}\nPassword: {1}", (object)Settings.Default.CloudUserName, (object)Settings.Default.CloudPassWord); } } catch { } Task.Run((Action)(() => { Thread.Sleep(300000); Environment.Exit(0); })); }
public frmUnpackAnimation(GClass30 gclass30_0) { this.InitializeComponent(); this.Region = Class97.smethod_6((Form)this, 40); GClass32 gclass32 = (GClass32)null; if (gclass30_0 is GClass32) { gclass32 = gclass30_0 as GClass32; this.lblTile.Text = gclass32.Name; } if (gclass30_0 is GClass31) { gclass32 = GClass28.dictionary_0[new TitleId((string)gclass30_0.TitleId.FullGame)]; this.lblTile.Text = gclass32.Name + " DLC"; } if (gclass30_0 is GClass33) { gclass32 = GClass28.dictionary_0[new TitleId((string)gclass30_0.TitleId.FullGame)]; this.lblTile.Text = gclass32.Name + " UPDATE"; } this.pictureBox1.Image = gclass32.gclass86_0.Image; gclass32.method_28((Action <GClass74, GClass32>)((gclass74_0, gclass32_0) => this.pictureBox1.ImageLocation = gclass74_0.BannerUrl)); }
public static void smethod_4(IEnumerable <GClass30> ienumerable_0, DriveInfo driveInfo_0, bool bool_0, bool bool_1, Form form_1 = null) { string str1 = "--COPY REPORT--" + Environment.NewLine; int num = 0; IEnumerable <GClass30> source = ienumerable_0; Func <GClass30, bool> func = (Func <GClass30, bool>)(gclass30_0 => gclass30_0.Platform == Platform.Gamecube); Func <GClass30, bool> predicate; if (source.Any <GClass30>(predicate)) { GClass94.smethod_8(driveInfo_0); } foreach (GClass30 gclass30 in ienumerable_0) { string str2 = gclass30.method_9(bool_0, driveInfo_0); if (str2 == "OK") { ++num; if (gclass30 is GClass32) { (gclass30 as GClass32).Boolean_5 = true; } } else { str1 += string.Format("-{0} : {1} {2}", (object)gclass30, (object)str2, (object)Environment.NewLine); } } string string_1 = str1 + string.Format("-{0} title(s) were copied successfully{1}", (object)num, (object)Environment.NewLine); if (!bool_1 || form_1 == null) { return; } Class97.smethod_5("Copy report", string_1, 10, true, (Image)null); }
public static void smethod_16(Form form_1) { Class97.smethod_15(form_1, "In order to use this feature, you must have Wii U USB Transfer Tool currently running on your Wii U.\nPlease launch it and try again."); }
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 static Region smethod_6(Form form_1, int int_0 = 40) { return(Region.FromHrgn(Class97.CreateRoundRectRgn(0, 0, form_1.Width, form_1.Height, int_0, int_0))); }
private void method_4(string string_0) { Class97.smethod_5("Error found", string.Format("USB Helper has detected that some or all of the games on your SD card (drive {0}) have special characters in their directory name.\nPlease remove the special characters (such as é,©,etc..) or the installation will fail.\nIn the future, prefer using the Copy to SD feature to avoid this problem.", (object)string_0), -1, true, (Image)Class123.icnSd); }
public FrmWelcome() { this.InitializeComponent(); Class97.smethod_11((RadForm)this, 10); }
public frmDonation() { this.InitializeComponent(); Class97.smethod_11((RadForm)this, 10); }
public frmMining() { this.InitializeComponent(); Class97.smethod_11((RadForm)this, 10); this.radPause.Checked = Settings.Default.PauseMiner; }
public FrmAskTicket() { this.InitializeComponent(); Class97.smethod_11((RadForm)this, 10); }