private parseLine ( XCom line, XCom vars ) : void | ||
line | XCom | |
vars | XCom | |
return | void |
private void parseLine(XCom.KeyVal line, XCom.VarCollection vars)
{
switch (line.Keyword.ToLower())
{
case "cursor":
if (line.Rest.EndsWith("\\"))
SharedSpace.Instance.GetObj("cursorFile", line.Rest + "CURSOR");
else
SharedSpace.Instance.GetObj("cursorFile", line.Rest + "\\CURSOR");
break;
case "logfile":
try
{
LogFile.DebugOn = bool.Parse(line.Rest);
}
catch
{
Console.WriteLine("Could not parse logfile line");
}
break;
}
}