private void ToolStrip_game_Click(object sender, EventArgs e) { string str = " -debug "; string CDBname = CCFile.GetName(CDBfile); if (File.Exists(SET.GamePath + SET.GameName) && CDBname.Length > 0) { if (!CDBname.Equals("cards.cdb", StringComparison.OrdinalIgnoreCase)) { str += " -e" + CDBname; } } MessageBox.Show("游戏参数:" + str); CCFile.RUN(SET.GamePath + SET.GameName, str); }
private void ToolStrip_gamepath_Click(object sender, EventArgs e) { string str = ""; if (CCFile.SelectOpenFile(out str, "请选择游戏文件(ygopro_vs.exe)", "exe", "")) { if (File.Exists(str)) { SET.GameName = CCFile.GetName(str); SET.GamePath = CCFile.GetPath(str); SET.SaveSet(setfile); ToolStrip_gamepath.ToolTipText = SET.GamePath; ToolStrip_game.ToolTipText = SET.GameName; } } }