public void DisableAll(bool save = true) { DisabledList.UnionWith(ModSelectorService.Instance.GetAllModNames()); ProfileManager.UpdateProfileSelection(); if (save) { Save(); } }
public void DisableAllOfType(ModSelectorService.ModType modType, bool save = true) { string[] modNames = ModSelectorService.Instance.GetModNames(modType).ToArray(); DisabledList.UnionWith(modNames); ProfileManager.UpdateProfileSelection(); if (save) { Save(); } }