Esempio n. 1
0
        private void ApplySettings_()
        {
            //in case there is no mod configuration to load we initialize the settings here, so that the mod menu can be used without errors.
            SettingsInit.init();
            if (settings == null)
            {
                return;
            }

            SettingsStorage.ApplySettings();

            foreach (Action <Mod> listener in applySettingsListeners)
            {
                listener(this);
            }
        }
Esempio n. 2
0
 public override void ExposeData()
 {
     base.ExposeData();
     SettingsInit.init();
     SettingsStorage.ExposeData();
 }