mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Expand on MetaDictionary to use separate dictionaries.
This commit is contained in:
parent
d7b60206d7
commit
94fdd848b7
15 changed files with 257 additions and 36 deletions
|
|
@ -8,7 +8,7 @@ namespace Penumbra.Mods.Editor;
|
|||
|
||||
public record struct AppliedModData(
|
||||
Dictionary<Utf8GamePath, FullPath> FileRedirections,
|
||||
HashSet<MetaManipulation> Manipulations)
|
||||
MetaDictionary Manipulations)
|
||||
{
|
||||
public static readonly AppliedModData Empty = new([], []);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ public class ModMerger : IDisposable
|
|||
{
|
||||
var redirections = option.Files.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
|
||||
var swaps = option.FileSwaps.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
|
||||
var manips = option.Manipulations.ToHashSet();
|
||||
var manips = option.Manipulations.Clone();
|
||||
|
||||
foreach (var originalOption in mergeOptions)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ public class ModMetaEditor(ModManager modManager)
|
|||
if (!Changes)
|
||||
return;
|
||||
|
||||
modManager.OptionEditor.SetManipulations(container, Recombine().ToHashSet());
|
||||
modManager.OptionEditor.SetManipulations(container, [..Recombine()]);
|
||||
Changes = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue