Пример #1
0
        private void Mainform_Load(object sender, EventArgs e)
        {
            CheckForRequiredGameFiles();

            if (!File.Exists("autoexec.cfg"))
            {
                ConfigChoice _ConfigChoice = new ConfigChoice();
                _ConfigChoice.ShowDialog();
            }

            customConfig   = Config.CustomConfig.Load();
            lithTechConfig = Config.LithTechConfig.Load();
            if (customConfig.LithFixEnabled)
            {
                customConfig.LithFixEnabled = customConfig.CheckLithFix();
            }

            if (!File.Exists("avp2cmds.txt"))
            {
                MessageBox.Show("No avp2cmds.txt found. The launcher will try to create it based on files in your current directory.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                CreateGenericAVP2Cmds();
            }

            SetPositionFromConfig();

            if (skipLauncher)
            {
                this.WindowState = FormWindowState.Minimized;
                StartGame();
            }
        }
Пример #2
0
        private void mainform_Load(object sender, EventArgs e)
        {
            CheckForRequiredGameFiles();

            if (!File.Exists("autoexec.cfg"))
            {
                _ConfigChoice = new ConfigChoice();
                _ConfigChoice.ShowDialog();
            }

            if (!File.Exists("avp2cmds.txt"))
            {
                MessageBox.Show("No avp2cmds.txt found. The launcher will try to create it based on files in your current directory.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                CreateGenericAVP2Cmds();
            }

            _GraphicsSettings = new GameSettings(this);

            if (skipLauncher)
            {
                this.WindowState = FormWindowState.Minimized;
                startGame();
            }
        }
Пример #3
0
        private void mainform_Load(object sender, EventArgs e)
        {
            CheckForRequiredGameFiles();

            if (!File.Exists("autoexec.cfg"))
            {
                _ConfigChoice = new ConfigChoice();
                _ConfigChoice.ShowDialog();
            }

            if (!File.Exists("avp2cmds.txt"))
            {
                MessageBox.Show("No avp2cmds.txt found. The launcher will try to create it based on files in your current directory.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                CreateGenericAVP2Cmds();
            }

            _GraphicsSettings = new GameSettings(this);
        }