diff options
| author | Alexander Gavrilov | 2012-06-21 21:26:25 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-06-21 21:26:25 +0400 |
| commit | 752da9ced5ce2df8cc9638cbf75a769325540e31 (patch) | |
| tree | 0bbf1c817e4c3f663bfe06e2ab3f2c05262952ff /library/LuaApi.cpp | |
| parent | f207714d4225e729fa43d04048d595ad6954521d (diff) | |
| download | dfhack-752da9ced5ce2df8cc9638cbf75a769325540e31.tar.gz dfhack-752da9ced5ce2df8cc9638cbf75a769325540e31.tar.bz2 dfhack-752da9ced5ce2df8cc9638cbf75a769325540e31.tar.xz | |
Move formatting newly-found globals for symbols.xml to lua code.
Diffstat (limited to 'library/LuaApi.cpp')
| -rw-r--r-- | library/LuaApi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp index 092404e3..b0a085ec 100644 --- a/library/LuaApi.cpp +++ b/library/LuaApi.cpp @@ -1074,9 +1074,9 @@ static int internal_setAddress(lua_State *L) } // Print via printerr, so that it is definitely logged to stderr.log. - addr -= Core::getInstance().vinfo->getRebaseDelta(); - std::string msg = stl_sprintf("<global-address name='%s' value='0x%x'/>", name.c_str(), addr); - dfhack_printerr(L, msg); + uint32_t iaddr = addr - Core::getInstance().vinfo->getRebaseDelta(); + fprintf(stderr, "Setting global '%s' to %x (%x)\n", name.c_str(), addr, iaddr); + fflush(stderr); return 1; } |
