mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-20 14:57:50 +01:00
Female Hrothgar resource handle related fixes...
This commit is contained in:
parent
5ed80c753f
commit
c7344efdc2
4 changed files with 25 additions and 18 deletions
|
|
@ -120,8 +120,10 @@ public sealed unsafe class ExpandedEqdpFile : MetaBaseFile
|
|||
=> GetDefault( Index, setIdx );
|
||||
|
||||
public static EqdpEntry GetDefault( int fileIdx, int setIdx )
|
||||
=> GetDefault( ( byte* )Penumbra.CharacterUtility.DefaultResource( fileIdx ).Address, setIdx );
|
||||
|
||||
public static EqdpEntry GetDefault( byte* data, int setIdx )
|
||||
{
|
||||
var data = ( byte* )Penumbra.CharacterUtility.DefaultResource( fileIdx ).Address;
|
||||
var blockSize = *( ushort* )( data + IdentifierSize );
|
||||
var totalBlockCount = *( ushort* )( data + IdentifierSize + 2 );
|
||||
|
||||
|
|
@ -138,7 +140,6 @@ public sealed unsafe class ExpandedEqdpFile : MetaBaseFile
|
|||
}
|
||||
|
||||
var blockData = ( ushort* )( data + IdentifierSize + PreambleSize + totalBlockCount * 2 + block * 2 );
|
||||
var x = new ReadOnlySpan< ushort >( blockData, blockSize );
|
||||
return ( EqdpEntry )( *( blockData + setIdx % blockSize ) );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue