diff --git a/hooks/hook_ConsoleLog.cpp b/hooks/hook_ConsoleLog.cpp new file mode 100644 index 00000000..0ee379f8 --- /dev/null +++ b/hooks/hook_ConsoleLog.cpp @@ -0,0 +1,16 @@ +//HOOK ConsoleLog ROffset = 0x0001CE0A +#include "../preprocessor/define.h" +#include "../preprocessor/macro.h" + +__asm__ +( + ".equ _funcPtr,"QU(ConsoleLog)"-0x0041CE0A \n" +); + +__asm__ volatile +( //0041CE0A + "JMP _funcPtr \n" + "NOP \n" + "NOP \n" + ".align 128, 0x0 \n" +); \ No newline at end of file diff --git a/sections/ConsoleLog.cpp b/sections/ConsoleLog.cpp new file mode 100644 index 00000000..87fc2c52 --- /dev/null +++ b/sections/ConsoleLog.cpp @@ -0,0 +1,11 @@ +void ConsoleLog() +{//Writes called console commands to the log. + __asm__ + ( + "MOV DWORD PTR SS:[EBP-4],2 \n" + "PUSH [ESP+0xF4] \n" + "CALL 0x00937CB0 \n" + "ADD ESP,4 \n" + "JMP 0x0041CE11 \n" + ); +} \ No newline at end of file