Tmp for Mod2

This commit is contained in:
Ottermandias 2022-04-09 16:29:20 +02:00
parent 069ae772a5
commit 48e442a9fd
30 changed files with 697 additions and 252 deletions

View file

@ -1,6 +1,8 @@
using System.Collections.Generic;
using System.Runtime.InteropServices;
using OtterGui.Raii;
using Penumbra.Mods;
using Penumbra.UI.Classes;
namespace Penumbra.UI;
@ -20,7 +22,7 @@ public partial class SettingsInterface
public TabBrowser()
{
_fileSystem = ModFileSystemA.Load();
_selector = new ModFileSystemSelector( _fileSystem );
_selector = new ModFileSystemSelector( _fileSystem, new HashSet<Mod>() );
}
public void Draw()

View file

@ -148,7 +148,7 @@ public class ModListCache : IDisposable
PluginLog.Debug( "Resetting mod selector list..." );
if( _modsInOrder.Count == 0 )
{
foreach( var modData in _manager.StructuredMods.AllMods( _manager.Config.SortFoldersFirst ) )
foreach( var modData in _manager.StructuredMods.AllMods( Penumbra.Config.SortFoldersFirst ) )
{
var idx = Penumbra.ModManager.Mods.IndexOf( modData );
var mod = new FullMod( Penumbra.CollectionManager.Current[ idx ].Settings ?? ModSettings.DefaultSettings( modData.Meta ),