mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-19 22:37:46 +01:00
Add Mare Synchronos and MUI API/IPC functions for testing. Not tested myself because how.
This commit is contained in:
parent
8422d36e4e
commit
d6d13594e0
15 changed files with 857 additions and 240 deletions
|
|
@ -74,6 +74,17 @@ public partial class ModCollection
|
|||
public static ModCollection CreateNewEmpty( string name )
|
||||
=> new(name, CurrentVersion, new Dictionary< string, ModSettings.SavedSettings >());
|
||||
|
||||
// Create a new temporary collection that does not save and has a negative index.
|
||||
public static ModCollection CreateNewTemporary(string tag, string characterName)
|
||||
{
|
||||
var collection = new ModCollection($"{tag}_{characterName}_temporary", Empty);
|
||||
collection.ModSettingChanged -= collection.SaveOnChange;
|
||||
collection.InheritanceChanged -= collection.SaveOnChange;
|
||||
collection.Index = ~Penumbra.TempMods.Collections.Count;
|
||||
collection.CreateCache();
|
||||
return collection;
|
||||
}
|
||||
|
||||
// Duplicate the calling collection to a new, unique collection of a given name.
|
||||
public ModCollection Duplicate( string name )
|
||||
=> new(name, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue