Allow the ra/cnc package dir to be overridden at launch-time.

This commit is contained in:
Paul Chote
2011-01-19 17:54:24 +13:00
committed by Paul Chote
parent 3c1f5e18f9
commit 108b90f192
4 changed files with 10 additions and 3 deletions

View File

@@ -219,6 +219,8 @@ namespace OpenRA
+ Path.DirectorySeparatorChar + "OpenRA";
SupportDir = args.GetValue("SupportDir", defaultSupport);
FileSystem.SpecialPackageRoot = args.GetValue("SpecialPackageRoot", "");
Settings = new Settings(SupportDir + "settings.yaml", args);
Settings.Save();