Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Stop Delphi from clearing up stack

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Daniel3
How do I cheat?
Reputation: 0

Joined: 04 Apr 2020
Posts: 6

PostPosted: Sat Oct 30, 2021 8:37 pm    Post subject: Stop Delphi from clearing up stack Reply with quote

Hi,

I am taking over various functions with hooks and I notice delphi uses "ret 0014" etc which wrecks the stack - as when it returns the game I am hooking uses add esp,14

In this case there are multiple calls and it's complicated. I can't just nop add esp,14

I can use Register directive but this isn't going to work when function is passing loads of parameters and in fact different registers would be passed anyway.

Is there a way to instruct delphi compiler not to do this and to use ordinary ret?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Sat Oct 30, 2021 11:41 pm    Post subject: Reply with quote

use nostackframe
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites