mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Add some debug helper output for SeFileDescriptor.
This commit is contained in:
parent
25aac1a03e
commit
9822ab4128
1 changed files with 17 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
|||
using Dalamud.Memory;
|
||||
using Penumbra.String.Functions;
|
||||
|
||||
namespace Penumbra.Interop.Structs;
|
||||
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
|
|
@ -14,4 +17,18 @@ public unsafe struct SeFileDescriptor
|
|||
|
||||
[FieldOffset(0x70)]
|
||||
public char Utf16FileName;
|
||||
|
||||
public FFXIVClientStructs.FFXIV.Client.System.Resource.Handle.ResourceHandle* CsResourceHandele
|
||||
=> (FFXIVClientStructs.FFXIV.Client.System.Resource.Handle.ResourceHandle*)ResourceHandle;
|
||||
|
||||
public string FileName
|
||||
{
|
||||
get
|
||||
{
|
||||
fixed (char* ptr = &Utf16FileName)
|
||||
{
|
||||
return MemoryMarshal.CreateReadOnlySpanFromNullTerminated(ptr).ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue