mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix metadata bug.
This commit is contained in:
parent
c542c79923
commit
84fd0262c2
2 changed files with 6 additions and 3 deletions
|
|
@ -101,7 +101,7 @@ namespace Penumbra.Interop
|
|||
var handle = ( ResourceHandle* )oldResources[ i ];
|
||||
if( oldResources[ i ].ToPointer() == pResources[ i ] )
|
||||
{
|
||||
PluginLog.Debug( $"Unchanged resource: {ResourceToPath( ( byte* )oldResources[ i ].ToPointer() )}" );
|
||||
PluginLog.Verbose( $"Unchanged resource: {ResourceToPath( ( byte* )oldResources[ i ].ToPointer() )}" );
|
||||
( ( ResourceHandle* )oldResources[ i ] )->DecRef();
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,10 +43,14 @@ public class CollectionManager
|
|||
if( ActiveCollection.Cache?.MetaManipulations.Count > 0 || newActive.Cache?.MetaManipulations.Count > 0 )
|
||||
{
|
||||
var resourceManager = Service< ResidentResources >.Get();
|
||||
ActiveCollection = newActive;
|
||||
resourceManager.ReloadResidentResources();
|
||||
}
|
||||
else
|
||||
{
|
||||
ActiveCollection = newActive;
|
||||
}
|
||||
|
||||
ActiveCollection = newActive;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -170,7 +174,6 @@ public class CollectionManager
|
|||
collection.Delete();
|
||||
Collections.Remove( name );
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
private void AddCache( ModCollection collection )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue