mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-09 17:44:42 +01:00
29 lines
No EOL
603 B
C#
29 lines
No EOL
603 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace Penumbra.Structs
|
|
{
|
|
[StructLayout( LayoutKind.Explicit )]
|
|
public unsafe struct ResourceHandle
|
|
{
|
|
public const int SsoSize = 15;
|
|
|
|
public byte* FileName()
|
|
{
|
|
if( FileNameLength > SsoSize )
|
|
{
|
|
return _fileName;
|
|
}
|
|
|
|
fixed( byte** name = &_fileName )
|
|
{
|
|
return ( byte* )name;
|
|
}
|
|
}
|
|
|
|
[FieldOffset( 0x48 )]
|
|
private byte* _fileName;
|
|
|
|
[FieldOffset( 0x58 )]
|
|
public int FileNameLength;
|
|
}
|
|
} |