Don't die when installing over an existing set of packages

This commit is contained in:
Paul Chote
2010-11-17 14:47:26 +13:00
parent 58367fdeac
commit 3d8b3efb9e

View File

@@ -134,7 +134,7 @@ namespace OpenRA.Utility
var redalertMixPath = "{0}{1}INSTALL{1}REDALERT.MIX".F(path, Path.DirectorySeparatorChar);
if (!File.Exists(redalertMixPath)) { Console.WriteLine("Error: REDALERT.MIX could not be found on the CD"); return; }
Console.WriteLine("Copying REDALERT.MIX");
File.Copy(redalertMixPath, "mods{0}ra{0}packages{0}redalert.mix".F(Path.DirectorySeparatorChar));
File.Copy(redalertMixPath, "mods{0}ra{0}packages{0}redalert.mix".F(Path.DirectorySeparatorChar),true);
Console.WriteLine("Done");
}