mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-24 01:19:22 +01:00
Move CollectionManager out of ModManager
This commit is contained in:
parent
0eff4e2e67
commit
9c0fc8a8c7
19 changed files with 94 additions and 102 deletions
|
|
@ -163,12 +163,12 @@ public unsafe partial class PathResolver
|
|||
private ModCollection? GetCollection( IntPtr drawObject )
|
||||
{
|
||||
var parent = FindParent( drawObject, out var collection );
|
||||
if( parent == null || collection == Penumbra.ModManager.Collections.DefaultCollection )
|
||||
if( parent == null || collection == Penumbra.CollectionManager.DefaultCollection )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return collection.Cache == null ? Penumbra.ModManager.Collections.ForcedCollection : collection;
|
||||
return collection.Cache == null ? Penumbra.CollectionManager.ForcedCollection : collection;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -274,7 +274,7 @@ public unsafe partial class PathResolver
|
|||
{
|
||||
collection = IdentifyCollection( resolver.LastGameObject );
|
||||
#if USE_CMP
|
||||
if( collection != Penumbra.ModManager.Collections.DefaultCollection && collection.Cache != null )
|
||||
if( collection != Penumbra.CollectionManager.DefaultCollection && collection.Cache != null )
|
||||
{
|
||||
collection.SetCmpFiles();
|
||||
return new MetaChanger( MetaManipulation.Type.Rsp );
|
||||
|
|
@ -309,25 +309,25 @@ public unsafe partial class PathResolver
|
|||
case MetaManipulation.Type.Eqdp:
|
||||
if( --_eqdpCounter == 0 )
|
||||
{
|
||||
Penumbra.ModManager.Collections.DefaultCollection.SetEqdpFiles();
|
||||
Penumbra.CollectionManager.DefaultCollection.SetEqdpFiles();
|
||||
}
|
||||
|
||||
break;
|
||||
case MetaManipulation.Type.Eqp:
|
||||
if( --_eqpCounter == 0 )
|
||||
{
|
||||
Penumbra.ModManager.Collections.DefaultCollection.SetEqpFiles();
|
||||
Penumbra.CollectionManager.DefaultCollection.SetEqpFiles();
|
||||
}
|
||||
|
||||
break;
|
||||
case MetaManipulation.Type.Est:
|
||||
Penumbra.ModManager.Collections.DefaultCollection.SetEstFiles();
|
||||
Penumbra.CollectionManager.DefaultCollection.SetEstFiles();
|
||||
break;
|
||||
case MetaManipulation.Type.Gmp:
|
||||
Penumbra.ModManager.Collections.DefaultCollection.SetGmpFiles();
|
||||
Penumbra.CollectionManager.DefaultCollection.SetGmpFiles();
|
||||
break;
|
||||
case MetaManipulation.Type.Rsp:
|
||||
Penumbra.ModManager.Collections.DefaultCollection.SetCmpFiles();
|
||||
Penumbra.CollectionManager.DefaultCollection.SetCmpFiles();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue