mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 12:44:19 +01:00
Add more edit options, some small fixes.
This commit is contained in:
parent
65bbece9cf
commit
54460c39f3
13 changed files with 697 additions and 227 deletions
|
|
@ -52,18 +52,26 @@ public unsafe partial class ResourceLoader
|
|||
return;
|
||||
}
|
||||
|
||||
var crc = ( uint )originalPath.Path.Crc32;
|
||||
var originalResource = FindResource( handle->Category, handle->FileType, crc );
|
||||
_debugList[ manipulatedPath.Value ] = new DebugData()
|
||||
// Got some incomprehensible null-dereference exceptions here when hot-reloading penumbra.
|
||||
try
|
||||
{
|
||||
OriginalResource = ( Structs.ResourceHandle* )originalResource,
|
||||
ManipulatedResource = handle,
|
||||
Category = handle->Category,
|
||||
Extension = handle->FileType,
|
||||
OriginalPath = originalPath.Clone(),
|
||||
ManipulatedPath = manipulatedPath.Value,
|
||||
ResolverInfo = resolverInfo,
|
||||
};
|
||||
var crc = ( uint )originalPath.Path.Crc32;
|
||||
var originalResource = FindResource( handle->Category, handle->FileType, crc );
|
||||
_debugList[ manipulatedPath.Value ] = new DebugData()
|
||||
{
|
||||
OriginalResource = ( Structs.ResourceHandle* )originalResource,
|
||||
ManipulatedResource = handle,
|
||||
Category = handle->Category,
|
||||
Extension = handle->FileType,
|
||||
OriginalPath = originalPath.Clone(),
|
||||
ManipulatedPath = manipulatedPath.Value,
|
||||
ResolverInfo = resolverInfo,
|
||||
};
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( e.ToString() );
|
||||
}
|
||||
}
|
||||
|
||||
// Find a key in a StdMap.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue