Script::RunScript
function · ui · primitive
- Address
0x48b980· 119 bytes, up to0x48b9f6- Signature
int __fastcall (lua_State *L)- Meaning
- Runs argument 1 as a chunk with the context word set to the RunScript word
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- ui/luastate#the-context-word
Finding: The context word in ui: the Lua state, its library and C functions
Each Lua value is 16 bytes: a type tag, a context word at +0x4 (padding in stock Lua 5.0) and the
value at +0x8. A new value takes the current context 0xceeac0. Copying a value with a nonzero
word makes that word current while the nesting count 0xceeac4 is above 0; copying one with a zero
word gives it the current context. The per-frame update zeroes the count. A script slot runs under
its word, RunScript under [0x83de24], an add-on's files under its name or 0. Context 0 is the
client's own code: RegisterForSave raises otherwise, and the action gate 0x494a50 refuses a
nonzero context for some kinds (ui/protected#protected-action-gate), signalling
MACRO_ACTION_FORBIDDEN for RunScript's word and ADDON_ACTION_FORBIDDEN with the word's text.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 3
- lua_isstring lua
- lua_tostring lua
- FrameScriptExecuteString ui
Calls and jumps by a bare address, from tables/calls.tsv.