more cleanup
This commit is contained in:
@@ -131,7 +131,7 @@ namespace OpenRA.Utility
|
|||||||
var section = args[2].Split('.')[0];
|
var section = args[2].Split('.')[0];
|
||||||
var field = args[2].Split('.')[1];
|
var field = args[2].Split('.')[1];
|
||||||
string expandedPath = args[1].Replace("~", Environment.GetFolderPath(Environment.SpecialFolder.Personal));
|
string expandedPath = args[1].Replace("~", Environment.GetFolderPath(Environment.SpecialFolder.Personal));
|
||||||
var settings = new Settings(expandedPath + Path.DirectorySeparatorChar + "settings.yaml", Arguments.Empty);
|
var settings = new Settings(Path.Combine(expandedPath,"settings.yaml"), Arguments.Empty);
|
||||||
var result = settings.Sections[section].GetType().GetField(field).GetValue(settings.Sections[section]);
|
var result = settings.Sections[section].GetType().GetField(field).GetValue(settings.Sections[section]);
|
||||||
Console.WriteLine(result);
|
Console.WriteLine(result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user