Remaining API13 updates.

This commit is contained in:
Ottermandias 2025-08-08 15:39:05 +02:00
parent 00d550f4fe
commit ac6a726f57
16 changed files with 36 additions and 31 deletions

View file

@ -529,11 +529,11 @@ public class EquipmentDrawer
public unsafe void DrawDragDropTooltip()
{
var payload = ImGui.GetDragDropPayload().NativePtr;
var payload = ImGui.GetDragDropPayload().Handle;
if (payload is null)
return;
if (!MemoryMarshal.CreateReadOnlySpanFromNullTerminated(payload->DataType).SequenceEqual("equipDragDrop"u8))
if (!MemoryMarshal.CreateReadOnlySpanFromNullTerminated((byte*)Unsafe.AsPointer(ref payload->DataType_0)).SequenceEqual("equipDragDrop"u8))
return;
using var tt = ImUtf8.Tooltip();