Exemplo n.º 1
0
            public static void PrePatch(HarmonyInstance instance)
            {
                ConfigManager = new ConfigManager <Config>();
                ConfigManager.ReadConfig();

                if (ConfigManager.Config.Colors == null)
                {
                    ConfigManager.Config.Colors = new Dictionary <string, string>();
                }

                _configWatcher = new ConfigWatcher(OnConfigChanged);
            }
Exemplo n.º 2
0
        public override void OnLoad(Harmony harmony)
        {
            LogInit(mod);

            ConfigManager = new ConfigManager <Config>(mod);
            ConfigManager.ReadConfig();

            if (ConfigManager.Config.Colors == null)
            {
                ConfigManager.Config.Colors = new Dictionary <string, string>();
            }

            _configWatcher = new ConfigWatcher(OnConfigChanged);

            base.OnLoad(harmony);
        }