/// <summary> /// defineのプロパティファイルに差分プロパティを上書きして保存します /// </summary> /// <param name="plugin">defineの対象プラグイン</param> /// <param name="property">プロパティの差分のみ</param> public static void SaveToDefine(IPlugin plugin, IniFile property) { var dirPath = PluginManager.GetDefineDataPath(plugin.GetType().FullName); var iniPath = FileUtils.AppendPath(dirPath, PropertyFileName); //defineのプロパティファイルを読み込みます var defineProp = new IniFile(); defineProp.Load(iniPath); //引数の差分プロパティを、defineのプロパティに上書きします defineProp.AddData(property); //defineのプロパティファイルを保存します defineProp.Save(); }