Пример #1
0
        public static void JPForTaiwan(string InstallPath)
        {
            var        DownloadFile = MainWindow.PatchStreamURI + MainWindow.PatchFileName_TW;
            processing pr           = new processing();

            pr.Show();
            pr.ProcessBar.Maximum = 20;
            pr.ProcessBar.Minimum = 0;
            pr.ProcessBar.Value   = 0;

            webclient.DownloadFile(DownloadFile, "data/prestringtable_tw.zip");
            ZipFile zipFile = ZipFile.Read("data/prestringtable_tw.zip");

            //if(!Directory.Exists(InstallPath + "/stringtable/"))
            //{
            //    Directory.CreateDirectory(InstallPath + "/stringtable/");
            //}
            zipFile["languagedata.xlsm"].Extract(InstallPath + "/prestringtable/tw/", ExtractExistingFileAction.OverwriteSilently);
            zipFile["stringtable_tw.xlsm"].Extract(InstallPath + "/prestringtable/tw/", ExtractExistingFileAction.OverwriteSilently);
            //zipFile["stringtable_tw.xlsm"].Extract(InstallPath + "/stringtable/tw/", ExtractExistingFileAction.OverwriteSilently);
            zipFile["symbolnostringtable_tw.xlsm"].Extract(InstallPath + "/prestringtable/tw/", ExtractExistingFileAction.OverwriteSilently);
            //zipFile["symbolnostringtable_tw.xlsm"].Extract(InstallPath + "/stringtable/tw/", ExtractExistingFileAction.OverwriteSilently);
            zipFile["stringtable_cutscene_tw.xlsm"].Extract(InstallPath + "/prestringtable/tw/", ExtractExistingFileAction.OverwriteSilently);
            //zipFile["stringtable_cutscene_tw.xlsm"].Extract(InstallPath + "/stringtable/tw/", ExtractExistingFileAction.OverwriteSilently);
            //zipFile["pad00000.meta"].Extract(InstallPath + "/paz/", ExtractExistingFileAction.OverwriteSilently);
            zipFile["pearl.ttf"].Extract(InstallPath + "/prestringtable/font/", ExtractExistingFileAction.OverwriteSilently);

            zipFile.Dispose();
            zipFile = null;
            webclient.Dispose();

            pr.Visibility = Visibility.Hidden;
        }
Пример #2
0
        public static async Task GamezToJP(string InstallPath)
        {
            processing pr = new processing();

            pr.Show();
            pr.ProcessBar.Maximum = 20;
            pr.ProcessBar.Minimum = 0;
            pr.ProcessBar.Value   = 0;
            var p = new Progress <int>(ShowProgress);
            await Task.Run(() => GamezToJP_Process(p, InstallPath));

            MessageBox.Show("パッチインストールが完了しました。");
            pr.Close();
        }