private static void CfgSetBool(AceCustomConfig cfg, string strKey, bool bValue, bool bDefault) { if(bValue != bDefault) cfg.SetBool(strKey, bValue); else { try { cfg.SetString(strKey, null); } catch(Exception) { Debug.Assert(false); cfg.SetBool(strKey, bValue); } } }
public Options(IPluginHost host) { this.host = host; this.config = host.CustomConfig; }
public ConfigOpt(AceCustomConfig config) { _config = config; }