From 5d0b750a64d80b49f8f4ae888f9a303c11f4fa47 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 14 Nov 2010 14:25:29 +1300 Subject: [PATCH] Hack to allow temp download dir to be specified relative to home dir. --- OpenRA.Utility/Command.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Utility/Command.cs b/OpenRA.Utility/Command.cs index d19a894fac..e4f3d8cb05 100644 --- a/OpenRA.Utility/Command.cs +++ b/OpenRA.Utility/Command.cs @@ -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);