예제 #1
0
        private async void CheckPBox_Click(object sender, EventArgs e)
        {
            Verif           = true;
            CheckPBox.Image = Resources._checked;
            StartPBox.Image = Resources.started;
            LTitulo.Text    = Config.CHECKING_FILES;
            LTitulo.Refresh();
            Logger.Log("[>] Verificação dos arquivos do jogo iniciada.");
            Buttons_Enable(false, false, false);
            Buttons_Visible(true, true, false);
            LArquivo.Visible = true;

            for (int i = 0; i < 100; i++)
            {
                LArquivo.Text = "     Buy full version for check client!";
                Bar1SetProgress(i, 100);
                await Task.Delay(10);
            }

            Verif             = false;
            LDownload.Visible = false;
            Logger.Log("[<] Verificação dos arquivos do jogo finalizada.");
            await Clear.Trash();

            CheckPBox.Image = Resources.check;
            StartPBox.Image = Resources.start;
            Buttons_Enable(true, true, false);
            Buttons_Visible(true, true, false);
            Arquivo_Bar.Width = Arquivo_BarFixo.Width;
            Total_Bar.Width   = Total_BarFixo.Width;
            LTitulo.Text      = Config.GAME_IS_UPDATE;
            LArquivo.Visible  = false;
        }
예제 #2
0
        private async void StartPBox_Click(object sender, EventArgs e)
        {
            if (Connect._useXCLoader && !File.Exists(string.Concat(Application.StartupPath, "\\xigncode3_loader.exe")))
            {
                Logger.Log("[!!] Não foi possível localizar xigncode3_loader.exe");
                MessageBox.Show("Não foi possível localizar xigncode3_loader.exe", Connect.GameName, MessageBoxButtons.OK, MessageBoxIcon.Error);
                Close();
            }
            else if (File.Exists(string.Concat(Application.StartupPath, "\\PointBlank.exe")))
            {
                StartPBox.Image   = Resources.start_click;
                CheckPBox.Image   = Resources.check_click;
                StartPBox.Enabled = false;
                LTitulo.Update();
                await Task.Delay(10);

                try
                {
                    if (Connect._useXCLoader)
                    {
                        Process.Start(string.Concat(Application.StartupPath, "\\xigncode3_loader.exe"));
                        await Task.Delay(60);
                    }
                    Process.Start(string.Concat(Application.StartupPath, "\\PointBlank.exe"), Connect._keyHost ? Connect._launcherKey.ToString() : Param.key_dll);
                    Hide();
                }
                catch (Exception arg)
                {
                    Logger.Log("[!] Jogo não iniciado! [" + arg.Message + "]");
                    MessageBox.Show("Jogo não iniciado! \n[" + arg.Message + "]", Connect.GameName, MessageBoxButtons.OK, MessageBoxIcon.Error);
                    Close();
                    return;
                }
                Logger.Log("[!] O Jogo foi iniciado com sucesso!");
                await Task.Delay(10);

                Close();
            }
            else
            {
                MessageBox.Show(Config.GAME_NOT_FOUND, Connect.GameName, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                Logger.Log("[!!] Não foi possível localizar PointBlank.exe");
                Close();
            }
        }