mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-31 04:43:42 +01:00
Update to API4, use IPC instead of API-project. Replace Actor in most visible names with Object, Character or Player..
This commit is contained in:
parent
3680d2b63f
commit
4dfc2cf665
60 changed files with 812 additions and 740 deletions
|
|
@ -141,18 +141,17 @@ namespace Penumbra.Mods
|
|||
// Sets and saves the sort order of a single mod, removing the entry if it is unnecessary.
|
||||
private static void SaveMod( ModData mod )
|
||||
{
|
||||
var config = Service< Configuration >.Get();
|
||||
if( ReferenceEquals( mod.SortOrder.ParentFolder, Root )
|
||||
&& string.Equals( mod.SortOrder.SortOrderName, mod.Meta.Name.Replace( '/', '\\' ), StringComparison.InvariantCultureIgnoreCase ) )
|
||||
{
|
||||
config.ModSortOrder.Remove( mod.BasePath.Name );
|
||||
Penumbra.Config.ModSortOrder.Remove( mod.BasePath.Name );
|
||||
}
|
||||
else
|
||||
{
|
||||
config.ModSortOrder[ mod.BasePath.Name ] = mod.SortOrder.FullName;
|
||||
Penumbra.Config.ModSortOrder[ mod.BasePath.Name ] = mod.SortOrder.FullName;
|
||||
}
|
||||
|
||||
config.Save();
|
||||
Penumbra.Config.Save();
|
||||
InvokeChange();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue