public KPM() { SettingsPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "settings.json"); if (File.Exists(SettingsPath)) { Settings = JsonConvert.DeserializeObject<Settings>(File.ReadAllText(SettingsPath)); } else { Settings = new Settings(); } Manager = new ModManager(Path.GetTempPath(), Settings); }
public ModManager(string ModDirectory, Settings Settings) { settings = Settings; }