mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-19 23:24:22 +01:00
ClientStructs-ify a few things
This commit is contained in:
parent
6375faa758
commit
00dc5f48b1
23 changed files with 102 additions and 314 deletions
|
|
@ -99,10 +99,10 @@ public class ResourceTab : ITab
|
|||
UiHelpers.Text(resource);
|
||||
if (ImGui.IsItemClicked())
|
||||
{
|
||||
var data = Interop.Structs.ResourceHandle.GetData(resource);
|
||||
var data = resource->CsHandle.GetData();
|
||||
if (data != null)
|
||||
{
|
||||
var length = (int)Interop.Structs.ResourceHandle.GetLength(resource);
|
||||
var length = (int)resource->CsHandle.GetLength();
|
||||
ImGui.SetClipboardText(string.Join(" ",
|
||||
new ReadOnlySpan<byte>(data, length).ToArray().Select(b => b.ToString("X2"))));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue