ClientStructs-ify a few things

This commit is contained in:
Exter-N 2023-10-27 01:52:16 +02:00
parent 6375faa758
commit 00dc5f48b1
23 changed files with 102 additions and 314 deletions

View file

@ -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"))));
}