Make IMC handler load temp collections correctly.

This commit is contained in:
Ottermandias 2022-07-17 16:51:03 +02:00
parent 00e1736d13
commit 39d339a3d8
4 changed files with 10 additions and 5 deletions

View file

@ -1,4 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using OtterGui;
using Penumbra.Collections;
using Penumbra.GameData.ByteString;
using Penumbra.Meta.Manipulations;
@ -29,6 +32,9 @@ public class TempModManager
public IReadOnlyDictionary< string, ModCollection > Collections
=> _collections;
public bool CollectionByName( string name, [NotNullWhen( true )] out ModCollection? collection )
=> Collections.Values.FindFirst( c => string.Equals( c.Name, name, StringComparison.OrdinalIgnoreCase ), out collection );
// These functions to check specific redirections or meta manipulations for existence are currently unused.
//public bool IsRegistered( string tag, ModCollection? collection, Utf8GamePath gamePath, out FullPath? fullPath, out int priority )
//{