private static void LoadSettings(string path) { if (!System.IO.File.Exists(path)) { Water.Environment.DefineConstant("Settings", new Water.Dictionary()); } else { Water.TextReader reader = new Water.TextReader(new System.IO.StreamReader(path)); Water.Dictionary Settings = (Water.Dictionary)Water.Parser.Parse(reader); Water.Environment.DefineConstant("Settings", Settings); reader.Close(); } }