コード例 #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     ControlPak.AttachVHD();
     ControlPak.WaitForAttach();
     textBox2.Text = ControlPak.GetVHDVolumeLabel() + "res";
     ControlSecureFolder.InstallSecureFolder();
 }
コード例 #2
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     ControlSecureFolder.SecureFolderState(false);
     ControlPak.AttachVHD();
     ControlPak.WaitForAttach();
     foreach (FileInfo eachPak in new DirectoryInfo(resPath).GetFiles("*.pak"))
     {
         ControlPak.EjectPak(eachPak.Name);
     }
     ControlPak.EjectPak("pakList.json");
     ControlPak.DetachVHD();
 }
コード例 #3
0
 private void Button2_Click(object sender, EventArgs e)
 {
     tmrCheckPak.Stop();
     ControlSecureFolder.SecureFolderState(true);
     foreach (FileInfo eachPak in new DirectoryInfo(resPath).GetFiles("*.pak"))
     {
         ControlPak.EjectPak(eachPak.Name);
     }
     if (chkUsePList.Checked)
     {
         ControlPak.EjectPak("pakList.json");
     }
     ControlPak.DetachVHD();
     Text = "우회 완료";
 }
コード例 #4
0
 public void SetPUBG()
 {
     //FileSystem.CopyDirectory(textBox1.Text, textBox1.Text + "2",UIOption.AllDialogs);
     foreach (string eachDirectory in Directory.EnumerateDirectories(textBox1.Text, "*.*", System.IO.SearchOption.AllDirectories))
     {
         Directory.CreateDirectory(eachDirectory.Replace(@"\PUBG\", @"\PUBG2\"));
     }
     foreach (string eachFile in Directory.EnumerateFiles(textBox1.Text, "*.*", System.IO.SearchOption.AllDirectories))
     {
         ControlPak.CreateHSL(eachFile.Replace(@"\PUBG\", @"\PUBG2\"), eachFile);
     }
     File.Delete(textBox1.Text + @"2\TslGame\Content\Paks\pakList.json");
     File.Delete(textBox1.Text + @"2\TslGame\Binaries\Win64\TslGame.exe");
     File.Copy(Application.StartupPath + @"\org.json", textBox1.Text + @"2\TslGame\Content\Paks\pakList.json", true);
     File.Copy(Application.StartupPath + @"\org.exe", textBox1.Text + @"2\TslGame\Binaries\Win64\TslGame.exe", true);
     ControlPak.CreateSL(textBox1.Text + @"\TslGame\Binaries\Win64\TslGame.exe", textBox1.Text + @"2\TslGame\Binaries\Win64\TslGame.exe");
     MessageBox.Show("Done");
 }
コード例 #5
0
        private async void TmrCheckPUBG_Tick(object sender, EventArgs e)
        {
            Text = "Pak 적용 대기중";
            if (Process.GetProcessesByName("TslGame").Length >= 2)
            {
                tmrCheckPak.Stop();
                await WaitnSec(int.Parse(textBox3.Text));

                if (chkUsePList.Checked)
                {
                    ControlPak.InjectPak("pakList.json");
                }
                foreach (FileInfo eachPak in new DirectoryInfo(resPath).GetFiles("*.pak"))
                {
                    ControlPak.InjectPak(eachPak.Name);
                }
                Text = "적용완료";
            }
        }
コード例 #6
0
 private void Button1_Click(object sender, EventArgs e)
 {
     ControlPak.AttachVHD();
     ControlPak.WaitForAttach();
     ControlSecureFolder.SecureFolderState(false);
     foreach (FileInfo eachPak in new DirectoryInfo(resPath).GetFiles("*.pak"))
     {
         ControlPak.PreInjectPak(eachPak.Name);
         ControlPak.EjectPak(eachPak.Name);
         ControlSecureFolder.SecureFolderAdd(pubgPath + "\\" + eachPak.Name);
     }
     if (chkUsePList.Checked)
     {
         ControlPak.PreInjectPak("pakList.json");
         ControlPak.EjectPak("pakList.json");
         ControlSecureFolder.SecureFolderAdd(pubgPath + "\\" + "pakList.json");
     }
     tmrCheckPak.Start();
 }