This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __declspec(naked) void Stub_LOL_Control() | |
| { | |
| __asm | |
| { | |
| pushad | |
| add ecx, ebx | |
| //ONPROCESS START | |
| mov edx, OnProcessSpell_Stub | |
| cmp ecx, edx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static void Main(string[] args) | |
| { | |
| byte[] currentFuncAddrInstructions = new byte[] | |
| { | |
| #if x86 | |
| 0x8B, 0x04, 0x24, //mov eax, [esp] | |
| 0xC3 //ret | |
| #endif | |
| #if AnyCPU | |
| 0x48, 0x8B, 0x04, 0x24, //mov rax, [rsp] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Constructs a new vector with given x and y coordinates relative to the display. | |
| //Often known as a Point. | |
| public static class Vector2 | |
| { | |
| public Vector2(int xCoord, int yCoord) | |
| { | |
| this.x = xCoord; | |
| this.y = yCoord; | |
| } |