Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void hook_endframe()
- {
- //"TEST\x00"
- BYTE str[] = {116,101,115,116,NULL};
- //"fonts/smalldevfont"
- BYTE fontstr[] = {102,111,110,116,115,47,115,109,97,108,108,100,101,118,102,111,110,116,NULL};
- //color
- RGBA_COLOR col = {1.0f, 0.0f, 0.0f, 1.0f};
- //DrawText
- DRAWTEXT((char*)str, -1, GETFONT((char*)fontstr, 0), 200, 200, 1.0f, 1.0f, 0.0f, &col, 0);
- //fix original endframe
- BYTE oendframe[10] = {0x51,0xA1,0xBC,0x1A,0x7E,0x00,0x83,0x78,0x10,0x03};
- int oidx = 0;
- while (oidx < 1 + sizeof(DWORD_PTR))
- (*(BYTE*)(0x00586E00 + oidx)) = oendframe[oidx--];
- //jmp 0x00586E00
- _asm { jmp 0x00586E00 }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement