Updated utility app for better compatibility with GTK launcher.
This commit is contained in:
committed by
Chris Forbes
parent
61f7e1df7f
commit
fcec3cb590
@@ -227,7 +227,15 @@ namespace OpenRA.Utility
|
|||||||
|
|
||||||
if (args.Length < 2) { return; }
|
if (args.Length < 2) { return; }
|
||||||
|
|
||||||
string settingsFile = args[0] + Path.DirectorySeparatorChar + "settings.yaml";
|
string expandedPath = args[0].Replace("~", Environment.GetFolderPath(Environment.SpecialFolder.Personal));
|
||||||
|
|
||||||
|
string settingsFile = expandedPath + Path.DirectorySeparatorChar + "settings.yaml";
|
||||||
|
if (!File.Exists(settingsFile))
|
||||||
|
{
|
||||||
|
Console.WriteLine("Error: Could not locate settings file at {0}", settingsFile);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
List<MiniYamlNode> settingsYaml = MiniYaml.FromFile(settingsFile);
|
List<MiniYamlNode> settingsYaml = MiniYaml.FromFile(settingsFile);
|
||||||
Queue<String> settingKey = new Queue<string>(args[1].Split('.'));
|
Queue<String> settingKey = new Queue<string>(args[1].Split('.'));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user