示例#1
0
文件: Config.cs 项目: bitobrian/Aiva
        /// <summary>
        /// Save config to disc
        /// </summary>
        public void SaveConfig()
        {
            var json = Storage.ToJson();
            var path = Path.Combine(AppContext.BaseDirectory, "Config", "config.json");

            File.WriteAllText(path, json);
        }
示例#2
0
        /// <summary>
        /// Save config to disc
        /// </summary>
        public void SaveConfig()
        {
            var json = Storage.ToJson();

            File.WriteAllText(GetConfigPath(), json);
        }