public DetourPrintChat() { try { IntPtr printChatPointer = new IntPtr(Memory.LOLBaseAddress + Offsets.PrintChat); printChatDelegate = (PrintChat)Marshal.GetDelegateForFunctionPointer(printChatPointer, typeof(PrintChat)); Memory.GetMagic.Detours.CreateAndApply(printChatDelegate, new PrintChat(this.PrintChatDetour), "printChat"); } catch (Exception ex) { Frame.Log(ex.ToString()); } }
public DetourPrintChat() { try { IntPtr printChatPointer = new IntPtr(Memory.LOLBaseAddress+Offsets.PrintChat); printChatDelegate = (PrintChat)Marshal.GetDelegateForFunctionPointer(printChatPointer, typeof(PrintChat)); Memory.GetMagic.Detours.CreateAndApply(printChatDelegate,new PrintChat(this.PrintChatDetour),"printChat"); } catch (Exception ex) { Frame.Log(ex.ToString()); } }