Replies: 1 comment 1 reply
-
This is pretty much how breakpoints work already. If you read the wiki on the Lua API you'll see that the Lua API allows you to add breakpoints + a callback to be called when the breakpoint is triggered. The default action is to pause the emulator, but you can make it print the PC, or whatever. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Every scriptpoint is associated with a script and when triggered the script is interpreted and executed.
The script can be written in any language that has an interpreter for like Lua.
A breakpoint is a special case of a scriptpoint where the script is to just pause the game.
A logpoint is another special case of a scriptpoint where the script is to print the value of PC to the Logs window.
Scriptpoint is the most generic and general concept.
What do you think that scriptpoints can be used for more than just pausing the game and print PC to Logs window?
Beta Was this translation helpful? Give feedback.
All reactions