diff --git a/Penumbra/Interop/CharacterUtility.cs b/Penumbra/Interop/CharacterUtility.cs index d16b3094..1c26ebb8 100644 --- a/Penumbra/Interop/CharacterUtility.cs +++ b/Penumbra/Interop/CharacterUtility.cs @@ -54,7 +54,7 @@ public unsafe class CharacterUtility : IDisposable .Select( i => Array.IndexOf( RelevantIndices, i ) ).ToArray(); - public (IntPtr Address, int Size)[] DefaultResources = new (IntPtr, int)[RelevantIndices.Length]; + public readonly (IntPtr Address, int Size)[] DefaultResources = new (IntPtr, int)[RelevantIndices.Length]; public (IntPtr Address, int Size) DefaultResource( int fullIdx ) => DefaultResources[ ReverseIndices[ fullIdx ] ]; diff --git a/Penumbra/Interop/Resolver/PathResolver.Material.cs b/Penumbra/Interop/Resolver/PathResolver.Material.cs index 160820e3..e3f1ab56 100644 --- a/Penumbra/Interop/Resolver/PathResolver.Material.cs +++ b/Penumbra/Interop/Resolver/PathResolver.Material.cs @@ -83,12 +83,16 @@ public unsafe partial class PathResolver var name = lastUnderscore == -1 ? split.ToString() : split.Substring( 0, lastUnderscore ).ToString(); if( Penumbra.CollectionManager.ByName( name, out var collection ) ) { +#if DEBUG PluginLog.Verbose( "Using MtrlLoadHandler with collection {$Split:l} for path {$Path:l}.", name, path ); +#endif SetCollection( path, collection ); } else { +#if DEBUG PluginLog.Verbose( "Using MtrlLoadHandler with no collection for path {$Path:l}.", path ); +#endif } // Force isSync = true for this call. I don't really understand why,