private void cmdLaunchEmu_Click(object sender, EventArgs e) { if (this.lstEmus.SelectedItem == null) { return; } GClass95 instance = (GClass95)Activator.CreateInstance((Type)this.lstEmus.SelectedItem.Tag, new object[2] { (object)GClass28.dictionary_0.ElementAt <KeyValuePair <TitleId, GClass32> >(0).Value, (object)false }); if (instance.Boolean_0) { new Process() { StartInfo = new ProcessStartInfo() { FileName = instance.GetExecutable(), WorkingDirectory = instance.Root_BIN_Path } }.Start(); } else { int num = (int)RadMessageBox.Show("The emulator is not installed yet. You must use the \"Play this game\" button at least once"); } }
private static string smethod_4(GClass32 gclass32_0, GClass95 gclass95_0) { System.IO.Path.Combine(GClass88.DirectoryCache, "steam"); string string_1 = GClass128.smethod_8(gclass32_0); System.IO.Directory.CreateDirectory(GClass128.String_0); new GClass78().method_5(string.Format("{0}/res/tools/Shortcut.exe", (object)Class67.CDNWiiUUSBHelperURL), string_1, 0UL, GClass78.GEnum4.const_0, (WebProxy)null, 0L, (byte[])null, (byte[])null, (byte)0); System.IO.File.WriteAllText(string_1 + ".arg", string.Format("{0}|{1}|{2}", (object)gclass95_0.GetExecutable(), (object)gclass95_0.GetArguments(), (object)System.IO.Path.GetDirectoryName(gclass95_0.GetExecutable()))); return(string_1); }