Created
May 25, 2018 05:33
-
-
Save nirinium/792168ae5625f061f50bf84462b9435e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
luaRegister=0x00CA3890; | |
function debugger_onBreakpoint() | |
if (EIP == luaRegister) then | |
nameAddr=readInteger(ESP+4) | |
nombre=readString(nameAddr,200,false) | |
funcAddr=readInteger(ESP+8) | |
valor=readInteger(ESP+12) | |
print("MakeNameEx(0x"..string.format("%X",funcAddr)..", \""..nombre.."_lua\", SN_NOCHECK | SN_NOWARN);") | |
return 1 --I handled it so don't tell the user | |
else | |
return 0 --unexpected breakpoint, show the the user | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment