Ejemplo n.º 1
0
        public static ModConfigOptions GetOptions()
        {
            if (_configOptions == null || _configFileUpdated)
            {
                _configOptions     = Helper.ReadConfig <ModConfigOptions>();
                _configFileUpdated = false;
            }

            return(_configOptions);
        }
Ejemplo n.º 2
0
        public static void SaveOptions(object config)
        {
            Helper.WriteConfig(config);

            _configOptions = null;
        }