Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ENABLE]
- {$lua}
- changeregaddress=0x00942B36 --change this to the address you want
- debug_removeBreakpoint(changeregaddress) --remove it if it was set
- function debugger_onBreakpoint()
- if (EIP == changeregaddress) then
- hasChangedARegister=true --obsolete in 6.1
- EAX=1
- changedEAX=true --obsolete in 6.1
- debug_continueFromBreakpoint(0) --run (bug in 6.0: it's always run)
- return 1 --I handled it so don't tell the user
- else
- return 0 --unexpected breakpoint, show the the user
- end
- end
- debug_setBreakpoint(changeregaddress)
- [DISABLE]
- {$lua}
- changeregaddress=0x00942B36 --change this to the address you want
- debug_removeBreakpoint(changeregaddress) --remove it if it was set
- function debugger_onBreakpoint()
- if (EIP == changeregaddress) then
- hasChangedARegister=true --obsolete in 6.1
- EAX=0
- changedEAX=true --obsolete in 6.1
- debug_continueFromBreakpoint(0) --run (bug in 6.0: it's always run)
- return 1 --I handled it so don't tell the user
- else
- return 0 --unexpected breakpoint, show the the user
- end
- end
- debug_setBreakpoint(changeregaddress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement