diff options
| -rw-r--r-- | Lua API.html | 4 | ||||
| -rw-r--r-- | library/LuaApi.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Lua API.html b/Lua API.html index f1bdd17d..84d13e2f 100644 --- a/Lua API.html +++ b/Lua API.html @@ -1329,8 +1329,8 @@ global environment, persistent between calls to the script.</p> <li><p class="first"><tt class="docutils literal">dfhack.internal.getVTable(name)</tt></p> <p>Returns the pre-extracted vtable address <tt class="docutils literal">name</tt>, or <em>nil</em>.</p> </li> -<li><p class="first"><tt class="docutils literal">dfhack.internal.getBase()</tt></p> -<p>Returns the base address of the process.</p> +<li><p class="first"><tt class="docutils literal">dfhack.internal.getRebaseDelta()</tt></p> +<p>Returns the ASLR rebase offset of the DF executable.</p> </li> <li><p class="first"><tt class="docutils literal">dfhack.internal.getMemRanges()</tt></p> <p>Returns a sequence of tables describing virtual memory ranges of the process.</p> diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp index 3693070d..092404e3 100644 --- a/library/LuaApi.cpp +++ b/library/LuaApi.cpp @@ -1036,7 +1036,7 @@ static void *checkaddr(lua_State *L, int idx, bool allow_null = false) return rv; } -static uint32_t getRebaseDelta() { return Core::getInstance().vinfo->getRebaseDelta(); } +static int getRebaseDelta() { return Core::getInstance().vinfo->getRebaseDelta(); } static const LuaWrapper::FunctionReg dfhack_internal_module[] = { WRAP(getRebaseDelta), |
