mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Stop replacing UI hashes to test if that fixes crashes.
This commit is contained in:
parent
ae842720ee
commit
9ce948e238
2 changed files with 9 additions and 4 deletions
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection.Metadata;
|
||||
using Dalamud.Hooking;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Utility.Signatures;
|
||||
|
|
|
|||
|
|
@ -97,9 +97,15 @@ public unsafe partial class ResourceLoader
|
|||
return retUnmodified;
|
||||
}
|
||||
|
||||
// Replace the hash and path with the correct one for the replacement.
|
||||
*resourceHash = ComputeHash( resolvedPath.Value.InternalName, pGetResParams );
|
||||
path = resolvedPath.Value.InternalName.Path;
|
||||
// Replace the hash and path with the correct one for the replacement,
|
||||
// but only for non-UI files. UI files can not reasonably be loaded multiple times at once,
|
||||
// and seem to cause concurrency problems if multiple UI parts use the same resource for different use-cases.
|
||||
if( *categoryId != ResourceCategory.Ui )
|
||||
{
|
||||
*resourceHash = ComputeHash( resolvedPath.Value.InternalName, pGetResParams );
|
||||
}
|
||||
|
||||
path = resolvedPath.Value.InternalName.Path;
|
||||
var retModified = CallOriginalHandler( isSync, resourceManager, categoryId, resourceType, resourceHash, path, pGetResParams, isUnk );
|
||||
ResourceLoaded?.Invoke( ( Structs.ResourceHandle* )retModified, gamePath, resolvedPath.Value, data );
|
||||
return retModified;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue