/// <summary> /// Loads the KSPConfig from the selected KSP folder. /// </summary> protected static void LoadKSPConfig() { ModSelectionController.ClearMods(); string configPath = KSPPathHelper.GetPath(KSPPaths.KSPConfig); if (File.Exists(configPath)) { Messenger.AddInfo(Messages.MSG_LOADING_KSP_MOD_CONFIGURATION); List <ModNode> mods = new List <ModNode>(); KSPConfig.Load(configPath, ref mods); ModSelectionController.AddMods(mods.ToArray()); ModSelectionController.SortModSelection(); } else { Messenger.AddInfo(Messages.MSG_KSP_MOD_CONFIGURATION_NOT_FOUND); } ModSelectionController.RefreshCheckedStateAllMods(); Messenger.AddInfo(Messages.MSG_DONE); }