Hack to allow temp download dir to be specified relative to home dir.

This commit is contained in:
Paul Chote
2010-11-14 14:25:29 +13:00
parent 43e99631a8
commit 5d0b750a64

View File

@@ -79,7 +79,7 @@ namespace OpenRA.Utility
if (args.Length >= 1)
mod = args[0];
if (args.Length >= 2)
destPath = args[1];
destPath = args[1].Replace("~",Environment.GetFolderPath(Environment.SpecialFolder.Personal));
string destFile = string.Format("{0}{1}{2}-packages.zip", destPath, Path.DirectorySeparatorChar, mod);