public static Gsconfig DecodeCps(string path) { string file = File.ReadAllText(path, System.Text.Encoding.UTF8); Gsconfig config = JsonConvert.DeserializeObject <Gsconfig>(file); return(config); }
public void Init(string filePath) { ConfData = JsonUtils.DecodeCps(filePath); Logger.SetLevel(ConfData.LogLevel); if (ConfData.RegConf.Enable) { var reg = new Register(ConfData.RegConf); reg.Run(); } roomFrames = new Dictionary <UInt64, Dictionary <UInt32, FrameData> >(); }
public void Init(string filePath) { ConfData = JsonUtils.DecodeCps(filePath); Logger.SetLevel(ConfData.LogLevel); }