Fix TD/RA/TS installation from CD.

This commit is contained in:
Paul Chote
2016-01-20 23:31:24 +00:00
parent 3b675c9bad
commit 00920b0060

View File

@@ -41,7 +41,6 @@ namespace OpenRA.Mods.Common
public static bool ExtractFromPackage(string srcPath, string package, string annotation, Dictionary<string, string[]> filesByDirectory,
string destPath, bool overwrite, Action<string> onProgress, Action<string> onError)
{
if (!Directory.Exists(destPath))
Directory.CreateDirectory(destPath);
Log.Write("debug", "Mounting {0}".F(srcPath));
@@ -86,6 +85,8 @@ namespace OpenRA.Mods.Common
public static bool CopyFiles(string srcPath, Dictionary<string, string[]> files, string destPath,
bool overwrite, Action<string> onProgress, Action<string> onError)
{
Directory.CreateDirectory(destPath);
foreach (var folder in files)
{
var targetDir = folder.Key;