mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-20 23:07:51 +01:00
Rework options, pre-submod types.
This commit is contained in:
parent
792a04337f
commit
07afbfb229
25 changed files with 620 additions and 300 deletions
|
|
@ -38,7 +38,7 @@ public sealed class Mod : IMod
|
|||
internal Mod(DirectoryInfo modPath)
|
||||
{
|
||||
ModPath = modPath;
|
||||
Default = new SubMod(this);
|
||||
Default = SubMod.CreateDefault(this);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
|
@ -82,7 +82,12 @@ public sealed class Mod : IMod
|
|||
}
|
||||
|
||||
public IEnumerable<SubMod> AllSubMods
|
||||
=> Groups.SelectMany(o => o).Prepend(Default);
|
||||
=> Groups.SelectMany(o => o switch
|
||||
{
|
||||
SingleModGroup single => single.OptionData,
|
||||
MultiModGroup multi => multi.PrioritizedOptions.Select(s => s.Mod),
|
||||
_ => [],
|
||||
}).Prepend(Default);
|
||||
|
||||
public List<FullPath> FindUnusedFiles()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue