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); }
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); }
private void restoreButton_Click(object sender, EventArgs e) { Patcher.RestoreAll(); }
private void patchButton_Click(object sender, EventArgs e) { Patcher.PatchAll(); }