예제 #1
0
        private void patchFileLabel_Click(object sender, EventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog();

            dialog.Title       = "Select Flash Player binaries to patch!";
            dialog.Multiselect = true;
            dialog.ShowDialog();

            string[] paths = dialog.FileNames;

            if (paths.Length == 0)
            {
                return;
            }

            Patcher.PatchFiles(paths);
        }
예제 #2
0
        private void patchFileLabel_Click(object sender, EventArgs e)
        {
            IntPtr redirection = Patcher.DisableRedirection();

            OpenFileDialog dialog = new OpenFileDialog();

            dialog.Title       = "Select Flash Player binaries to patch!";
            dialog.Multiselect = true;
            dialog.ShowDialog();

            string[] paths = dialog.FileNames;

            if (paths.Length != 0)
            {
                Patcher.PatchFiles(paths);
            }

            Patcher.EnableRedirection(redirection);
        }
예제 #3
0
 private void restoreButton_Click(object sender, EventArgs e)
 {
     Patcher.RestoreAll();
 }
예제 #4
0
 private void patchButton_Click(object sender, EventArgs e)
 {
     Patcher.PatchAll();
 }