Ejemplo n.º 1
0
    public void DisableAll(bool save = true)
    {
        DisabledList.UnionWith(ModSelectorService.Instance.GetAllModNames());
        ProfileManager.UpdateProfileSelection();

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

        if (save)
        {
            Save();
        }
    }