private void PatchButton_Click(object sender, EventArgs e) { Console.WriteLine("Patching Hellfire to version 1.01"); var installPath = HellfireCDMenu.GetHellfireInstallPath(); var patchFiles = new DirectoryInfo(PATCH_PATH); Console.WriteLine(installPath); Debug.Assert(installPath != null, "Patch button should be disabled if Hellfire is not installed!"); foreach (var file in patchFiles.GetFiles()) { var finalPath = Path.Combine(installPath, file.Name); file.CopyTo(finalPath, true); } }
public void EnableInstallRequiredMenuButton() { this.PatchButton.Enabled = HellfireCDMenu.IsHellfireInstalled(); }