예제 #1
0
        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());
            }
        }
예제 #2
0
        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());
                }
        }