private void MainForm_FormClosed(object sender, FormClosedEventArgs e) { UpdateModConfiguration(); UpdateSkinConfiguration(); if (Settings.Check("ModConfigAutosave", "True")) { ModMan.SaveConfig(ModMan.CurrentConfig); } if (Settings.Check("SkinConfigAutosave", "True")) { SkinMan.SaveConfig(SkinMan.CurrentConfig); } ModMan.SaveConfigList(); SkinMan.SaveConfigList(); Settings.Set("GameDir", Setup.GamePath); Settings.Save(); }