Now that's a collection manager.

This commit is contained in:
Ottermandias 2023-04-06 15:47:33 +02:00
parent 5a817db069
commit f85fc46fb7
55 changed files with 2433 additions and 2317 deletions

View file

@ -16,7 +16,7 @@ namespace Penumbra.Collections;
public partial class ModCollection
{
public const int CurrentVersion = 1;
public const string DefaultCollection = "Default";
public const string DefaultCollectionName = "Default";
public const string EmptyCollection = "None";
public static readonly ModCollection Empty = CreateEmpty();
@ -100,11 +100,6 @@ public partial class ModCollection
public ModCollection Duplicate(string name)
=> new(name, this);
// Check if a name is valid to use for a collection.
// Does not check for uniqueness.
public static bool IsValidName(string name)
=> name.Length > 0 && name.All(c => !c.IsInvalidAscii() && c is not '|' && !c.IsInvalidInPath());
// Remove all settings for not currently-installed mods.
public void CleanUnavailableSettings()
{