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 


Cheat Engine Forum Index
PostGo back to topic
atom0s
Moderator
Reputation: 204
Joined: 25 Jan 2006
Posts: 8579
Location: 127.0.0.1

PostPosted: Sun Oct 14, 2018 12:52 pm    Post subject:

The 'context' is set to globals when debugger_onBreakpoint is called.

Code:

 When a breaking breakpoint hits (that includes single stepping) and the lua function debugger_onBreakpoint() is defined it will be called and the global variables EAX, EBX, .... will be filled in
 Return 0 if you want the userinterface to be updated and anything else if not (e.g You continued from the breakpoint in your script)


So you can directly access the registers as globals in Lua.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Post reviews:   Approve 1
Author Review
TheyCallMeTim13
Review: Approve
Post reference:
ReviewPosted: Sun Oct 14, 2018 2:28 pm


Back to top
View user's profile Send private message Visit poster's website
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites