Jump to content

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

   (0 reviews)

2 Screenshots

About This File

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

 Share


User Feedback

You may only provide a review once you have downloaded the file.

There are no reviews to display.

×
×
  • 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.