CLEO5 icon indicating copy to clipboard operation
CLEO5 copied to clipboard

Update CGameMenu.cpp

Open PrIzRaKDev opened this issue 1 year ago • 1 comments

Changes:

  • Fixed a bug where the CTexture_DrawInRect call was manually inserted into the code, which could cause stack alignment issues.
    • Fixed a bug where the posX and posY variables were declared without initialization.
  • Fixed a bug where the code did not check for errors when calling the MemoryNop and MemoryJump functions.
  • Added a check that the CTEXTURE_DRAW_BG_RECT function call address is valid before inserting a hook.
  • Stack clearing with pop ebp added to OnDrawMenuBackground function to properly restore the stack after calling CTexture_DrawInRect.

PrIzRaKDev avatar May 18 '24 16:05 PrIzRaKDev

Did you even compiled and ran it?

MiranDMC avatar Jun 03 '24 22:06 MiranDMC