コード例 #1
0
 private void btnPatch_Click(object sender, EventArgs e)
 {
     //if Primal Launcher can write to the game installation folder
     if (Patcher.HasWritePermission())
     {
         Patcher.PatchExecutableFiles();
     }
     else
     {
         MessageBox.Show("Primal Launcher", "You need write permissions in the game installation folder. Please close this program, right-click the shortcut and select 'Run as administrator'. This operation is required only once. Aborting patching operation.");
     }
 }
コード例 #2
0
 private void BtnPatchExe_Click(object sender, EventArgs e) => Task.Run(() => { Patcher.PatchExecutableFiles(); });