CLEO5
CLEO5 copied to clipboard
Update CGameMenu.cpp
Changes:
- Fixed a bug where the
CTexture_DrawInRectcall was manually inserted into the code, which could cause stack alignment issues. -
- Fixed a bug where the
posXandposYvariables were declared without initialization.
- Fixed a bug where the
- Fixed a bug where the code did not check for errors when calling the
MemoryNopandMemoryJumpfunctions. - Added a check that the
CTEXTURE_DRAW_BG_RECTfunction call address is valid before inserting a hook. - Stack clearing with
pop ebpadded toOnDrawMenuBackgroundfunction to properly restore the stack after callingCTexture_DrawInRect.
Did you even compiled and ran it?