Пример #1
0
        private void MetaRefresh_Click(object sender, RoutedEventArgs e)
        {
            var InstallPath = gameInstallPath();

            if (targetsrv_gamez.IsChecked == true)
            {
                PatchProcess.GamezMetaRefresh(InstallPath);
            }
            if (targetsrv_tw.IsChecked == true)
            {
                PatchProcess.TaiwanMetaRefresh(InstallPath);
            }

            Message.MetaRefresh_Done();
            //PatchProcess.BuiltinMetaInjection();
        }
Пример #2
0
        // here you got pup op dialgos with errors
        private void deleteBtn_Click(object sender, EventArgs e)
        {
            string folder = this.gameInstallPath();
            bool   flag   = folder != "" && Directory.Exists(folder);

            if (flag)
            {
                bool flag2 = Directory.Exists(folder + "\\prestringtable");
                if (flag2)
                {
                    try
                    {
                        Directory.Delete(folder + "\\prestringtable", true);
                        Directory.Delete(folder + "\\stringtable", true);
                        if (targetsrv_gamez.IsChecked == true)
                        {
                            PatchProcess.GamezMetaRefresh(folder);
                            File.Delete(folder + "\\BDOToolBoxPatch.Installed");
                        }
                    }
                    catch (Exception ex)
                    {
                        int num = (int)System.Windows.MessageBox.Show(string.Format("パッチャーフォルダを削除できません。, エラーコード:{0}", ex.Message));
                        return;
                    }
                    //int num2 = (int)System.Windows.MessageBox.Show("フォルダは正常に削除されました。");
                    Message.PatchFolder_Deleted();
                }
                else
                {
                    //int num3 = (int)System.Windows.MessageBox.Show("フォルダは正常に削除されました。");
                    PatchProcess.GamezMetaRefresh(folder);
                    File.Delete(folder + "\\BDOToolBoxPatch.Installed");
                    Message.PatchFolder_Deleted();
                }
            }
            else
            {
                Message.InstallFolder_NotFound();
                //int num4 = (int)System.Windows.MessageBox.Show("");
            }
        }
Пример #3
0
        private void startPatching(string folder)
        {
            if (targetsrv_tw.IsChecked == true)
            {
                var InstallPath = gameInstallPath();
                try
                {
                    PatchProcess.TaiwanToJP(InstallPath);
                }
                catch
                {
                    ResetPatch();
                    PatchProcess.TaiwanToJP(InstallPath);
                }

                Message.FinishedPatching_Message();
            }
            if (targetsrv_tw.IsChecked == true)
            {
                var InstallPath = gameInstallPath();
                try
                {
                    PatchProcess.WesternToJP(InstallPath);
                }
                catch
                {
                    ResetPatch();
                    PatchProcess.WesternToJP(InstallPath);
                }
            }
            if (targetsrv_gamez.IsChecked == true)
            {
                var InstallPath = gameInstallPath();
                try
                {
                    PatchProcess.GamezToJP(InstallPath);
                    //FinishedPatching_Message();
                }
                catch
                {
                    ResetPatch();
                    PatchProcess.GamezToJP(InstallPath);
                    //FinishedPatching_Message();
                }
            }
            if (targetsrv_jp.IsChecked == true)
            {
            }
            // Target Server: Japan | Target Language: English
            if (targetsrv_jp.IsChecked == true)
            {
            }

            if (targetsrv_jp.IsChecked == true)
            {
                Message.UnAvailable_Message();
            }
            {
            }
            if (targetsrv_eu.IsChecked == true)
            {
                Message.UnAvailable_Message();
            }
        }