fix: InventoryItem#Copy is a vfunc now

This commit is contained in:
Kaz Wolfe 2024-11-12 16:07:28 -08:00
parent dc3818f42b
commit c6b0db069e
No known key found for this signature in database
GPG key ID: 258813F53A16EBB4

View file

@ -51,7 +51,7 @@ internal sealed unsafe class ChatGui : IInternalDisposableService, IChatGui
private ChatGui()
{
this.printMessageHook = Hook<PrintMessageDelegate>.FromAddress(RaptureLogModule.Addresses.PrintMessage.Value, this.HandlePrintMessageDetour);
this.inventoryItemCopyHook = Hook<InventoryItem.Delegates.Copy>.FromAddress(InventoryItem.Addresses.Copy.Value, this.InventoryItemCopyDetour);
this.inventoryItemCopyHook = Hook<InventoryItem.Delegates.Copy>.FromAddress((nint)InventoryItem.StaticVirtualTablePointer->Copy, this.InventoryItemCopyDetour);
this.handleLinkClickHook = Hook<LogViewer.Delegates.HandleLinkClick>.FromAddress(LogViewer.Addresses.HandleLinkClick.Value, this.HandleLinkClickDetour);
this.printMessageHook.Enable();