mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-15 13:14:17 +01:00
Small cleanup.
This commit is contained in:
parent
f6772af246
commit
cc9f8cc84e
2 changed files with 5 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ public unsafe class CharacterUtility : IDisposable
|
||||||
.Select( i => Array.IndexOf( RelevantIndices, i ) ).ToArray();
|
.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 )
|
public (IntPtr Address, int Size) DefaultResource( int fullIdx )
|
||||||
=> DefaultResources[ ReverseIndices[ fullIdx ] ];
|
=> DefaultResources[ ReverseIndices[ fullIdx ] ];
|
||||||
|
|
|
||||||
|
|
@ -83,12 +83,16 @@ public unsafe partial class PathResolver
|
||||||
var name = lastUnderscore == -1 ? split.ToString() : split.Substring( 0, lastUnderscore ).ToString();
|
var name = lastUnderscore == -1 ? split.ToString() : split.Substring( 0, lastUnderscore ).ToString();
|
||||||
if( Penumbra.CollectionManager.ByName( name, out var collection ) )
|
if( Penumbra.CollectionManager.ByName( name, out var collection ) )
|
||||||
{
|
{
|
||||||
|
#if DEBUG
|
||||||
PluginLog.Verbose( "Using MtrlLoadHandler with collection {$Split:l} for path {$Path:l}.", name, path );
|
PluginLog.Verbose( "Using MtrlLoadHandler with collection {$Split:l} for path {$Path:l}.", name, path );
|
||||||
|
#endif
|
||||||
SetCollection( path, collection );
|
SetCollection( path, collection );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#if DEBUG
|
||||||
PluginLog.Verbose( "Using MtrlLoadHandler with no collection for path {$Path:l}.", path );
|
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,
|
// Force isSync = true for this call. I don't really understand why,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue