mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-18 13:57:46 +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
|
|
@ -105,13 +105,24 @@ public partial class Mod
|
|||
private void LoadAllGroups()
|
||||
{
|
||||
_groups.Clear();
|
||||
var changes = false;
|
||||
foreach( var file in GroupFiles )
|
||||
{
|
||||
var group = LoadModGroup( file, ModPath );
|
||||
if( group != null )
|
||||
if( group != null && _groups.All( g => g.Name != group.Name ) )
|
||||
{
|
||||
changes = changes || group.FileName( ModPath, _groups.Count ) != file.FullName;
|
||||
_groups.Add( group );
|
||||
}
|
||||
else
|
||||
{
|
||||
changes = true;
|
||||
}
|
||||
}
|
||||
|
||||
if( changes )
|
||||
{
|
||||
SaveAllGroups();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue