Example #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     ControlPak.AttachVHD();
     ControlPak.WaitForAttach();
     textBox2.Text = ControlPak.GetVHDVolumeLabel() + "res";
     ControlSecureFolder.InstallSecureFolder();
 }
Example #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();
 }
Example #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 = "우회 완료";
 }
Example #4
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();
 }