mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix dumbness (all of it, please)
This commit is contained in:
parent
15602f5be5
commit
c9c4447f3d
2 changed files with 3 additions and 3 deletions
|
|
@ -82,7 +82,7 @@ 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 ) )
|
||||||
{
|
{
|
||||||
PluginLog.Verbose( "Using MtrlLoadHandler with collection {$Split:l} for path {$Path:l}.", split, path );
|
PluginLog.Verbose( "Using MtrlLoadHandler with collection {$Split:l} for path {$Path:l}.", name, path );
|
||||||
SetCollection( path, collection );
|
SetCollection( path, collection );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -102,7 +102,7 @@ public unsafe partial class PathResolver
|
||||||
{
|
{
|
||||||
if( nonDefault && type == ResourceType.Mtrl )
|
if( nonDefault && type == ResourceType.Mtrl )
|
||||||
{
|
{
|
||||||
var fullPath = new FullPath( $"|{collection.RecomputeCounter}_{collection.Name}|{path}" );
|
var fullPath = new FullPath( $"|{collection.Name}_{collection.RecomputeCounter}|{path}" );
|
||||||
data = ( fullPath, collection );
|
data = ( fullPath, collection );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ public partial class MetaManager
|
||||||
}
|
}
|
||||||
|
|
||||||
private FullPath CreateImcPath( Utf8GamePath path )
|
private FullPath CreateImcPath( Utf8GamePath path )
|
||||||
=> new($"|{_collection.RecomputeCounter}_{_collection.Name}|{path}");
|
=> new($"|{_collection.Name}_{_collection.RecomputeCounter}|{path}");
|
||||||
|
|
||||||
private static unsafe bool ImcLoadHandler( Utf8String split, Utf8String path, ResourceManager* resourceManager,
|
private static unsafe bool ImcLoadHandler( Utf8String split, Utf8String path, ResourceManager* resourceManager,
|
||||||
SeFileDescriptor* fileDescriptor, int priority, bool isSync, out byte ret )
|
SeFileDescriptor* fileDescriptor, int priority, bool isSync, out byte ret )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue