Exemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            string temp = System.IO.Path.GetTempPath();
            fun.SaveRecordFile(temp, "bgm1", ".wma");
            fun.SaveRecordFile(temp, "config", ".ini");
            IniPath = temp + "config.ini";
            fun.logger("启动程序", true, System.Windows.Forms.Application.StartupPath);
            if (checkfiles.checkdir(1) == false)//检测是否放在安装目录下
            {
                MessageBox.Show("这不是《质量效应3》的安装目录吧?难道你在忽悠老夫?", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                fun.logger("未检测到游戏本体,程序退出", false, System.Windows.Forms.Application.StartupPath);
                System.Environment.Exit(System.Environment.ExitCode);

            }

            AboutBox1 fm2 = new AboutBox1();

            fm2.ShowDialog();
            if(AdvMOD)
            {
                Application.Run(new Adv());
            }
            else Application.Run(new Form1());
        }
Exemplo n.º 2
0
 private void button3_Click(object sender, EventArgs e)
 {
     Program.fristrun = true;
     AboutBox1 fm2 = new AboutBox1();
     fm2.ShowDialog();
 }