mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-21 07:17:53 +01:00
Remove ISubMod.
This commit is contained in:
parent
8fc7de64d9
commit
9f4c6767f8
23 changed files with 123 additions and 184 deletions
|
|
@ -32,6 +32,9 @@ public sealed class Mod : IMod
|
|||
public ModPriority Priority
|
||||
=> ModPriority.Default;
|
||||
|
||||
IReadOnlyList<IModGroup> IMod.Groups
|
||||
=> Groups;
|
||||
|
||||
internal Mod(DirectoryInfo modPath)
|
||||
{
|
||||
ModPath = modPath;
|
||||
|
|
@ -74,18 +77,12 @@ public sealed class Mod : IMod
|
|||
group.AddData(config, dictRedirections, setManips);
|
||||
}
|
||||
|
||||
((ISubMod)Default).AddData(dictRedirections, setManips);
|
||||
Default.AddData(dictRedirections, setManips);
|
||||
return new AppliedModData(dictRedirections, setManips);
|
||||
}
|
||||
|
||||
ISubMod IMod.Default
|
||||
=> Default;
|
||||
|
||||
IReadOnlyList<IModGroup> IMod.Groups
|
||||
=> Groups;
|
||||
|
||||
public IEnumerable<SubMod> AllSubMods
|
||||
=> Groups.SelectMany(o => o).OfType<SubMod>().Prepend(Default);
|
||||
=> Groups.SelectMany(o => o).Prepend(Default);
|
||||
|
||||
public List<FullPath> FindUnusedFiles()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue