mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-02 05:43:42 +01:00
Allow extracting identically named options again.
This commit is contained in:
parent
f0af9f1274
commit
e85d57b094
3 changed files with 31 additions and 8 deletions
|
|
@ -58,16 +58,16 @@ public partial class Mod
|
|||
}
|
||||
|
||||
// Create a file for an option group from given data.
|
||||
internal static void CreateOptionGroup( DirectoryInfo baseFolder, ModGroup groupData,
|
||||
internal static void CreateOptionGroup( DirectoryInfo baseFolder, SelectType type, string name,
|
||||
int priority, int index, string desc, IEnumerable< ISubMod > subMods )
|
||||
{
|
||||
switch( groupData.SelectionType )
|
||||
switch( type )
|
||||
{
|
||||
case SelectType.Multi:
|
||||
{
|
||||
var group = new MultiModGroup()
|
||||
{
|
||||
Name = groupData.GroupName,
|
||||
Name = name,
|
||||
Description = desc,
|
||||
Priority = priority,
|
||||
};
|
||||
|
|
@ -79,7 +79,7 @@ public partial class Mod
|
|||
{
|
||||
var group = new SingleModGroup()
|
||||
{
|
||||
Name = groupData.GroupName,
|
||||
Name = name,
|
||||
Description = desc,
|
||||
Priority = priority,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue