Code:
Main.init([&](){
hacks.addConsole(VK_INSERT,FPS,1.0,0.0);
hacks.addConsole(VK_DELETE,CHAMS,1.0,0.0);
hacks.addMemory(VK_NUMPAD0,0x37511606,PBYTE("\x33\xC0\x90"),PBYTE("\x0F\x94\xC0"),3);
});
The prototypes of the two functions are:
Code:
void addConsole(BYTE hotkey, std::string base, float fOn, float fOff);
void addMemory(BYTE hotkey, DWORD address, PBYTE on, PBYTE off, size_t bytesToPatch);
Next, you need to tell the cHackContainer class to iterate through all of the hacks and execute them each frame. You accomplish this by calling the executeAll() function: