public void ReceiveLeatherConfiguration(LeatherConfig config) { string cfgPath = Path.Combine (config.ConfigDirectoryPath, "LimitedSleepers.cfg"); if (File.Exists (cfgPath)) { IniParser parser = new IniParser (cfgPath); String lifeStr = parser.GetSetting ("General", "SleeperLifeInMinutes"); int.TryParse (lifeStr, out this.sleeperLifeInMinutes); ConsoleSystem.Log ("Config parsed- sleeper life is "+this.sleeperLifeInMinutes+" minutes."); } else { ConsoleSystem.Log ("Could not locate LimitedSleepers.cfg"); } }
public void ReceiveLeatherConfiguration(LeatherConfig config) { setLeatherModsDir = config.ConfigDirectoryPath; }