Jump to content

Recommended Posts

Posted

convert an offset to a function for patching "hookOne" offsets


A simple, somewhat useless script to convert an offset to a function for patching "hookOne" offsets: 

function hookOne(library, flag, offset, value)
    list = gg.getRangesList(library)
    for i in pairs(list) do
        if list[i].state == "Xa" then
            start = list[i].start
            break
        end
    end
    local t = {}
    t[1] = {}
    t[1].address = start + offset
    t[1].value = value
    t[1].flags = flag
    gg.setValues(t)
end

ts.lua


 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.