FrameScript_UnregisterFunction
function · ui · orchestration
- Address
0x704160· 53 bytes, up to0x704194- Signature
void __fastcall (const char *name)- Meaning
- Sets the global of a name to nil
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- ui/luastate#the-c-function-contract
Finding: The C function contract in ui: the Lua state, its library and C functions
Every C function the client registers is int __fastcall f(lua_State *L) that answers its result
count. Registering sets the global of the name to a closure with no upvalues. Before the VM calls
any C function, 0x42a320 checks that its address lies in the exe's .text section and stops the
client with Invalid function pointer: %p otherwise. Arguments are read by index. An absent one has
the type none, −1, not nil, so a function that tests the type against nil's 0 tells the two apart:
glue's GetAddOnEnableState raises its usage for an absent first argument and accepts an explicit
nil. A Usage: failure calls luaL_error, which never returns: the error unwinds to the enclosing
protected call.
The derivation is in the doc.
Callers 54
- UnloadSoundScriptFunctions sound
- UnregisterGlueScriptFunctions glue
- UnregisterRealmListScriptFunctions glue
- UnregisterCreateScriptFunctions glue
- UnregisterCharSelectScriptFunctions glue
- CGGameUI::UnregisterScriptFunctions ui
- UnregisterChatFunctions ui
- UnregisterWorldMapFunctions ui
- UnregisterBattlefieldFunctions ui
- UnregisterMailFunctions ui
- UnregisterSpellBookFunctions ui
- UnregisterTutorialFunctions ui
- UnregisterBindingFunctions ui
- UnregisterRaidFunctions ui
- UnregisterPetFunctions ui
- UnregisterTradeFunctions ui
- UnregisterLootFunctions ui
- UnregisterLotteryFunctions ui
- UnregisterMinigameFunctions ui
- UnregisterWorldStateFunctions ui
- UnregisterInventoryFunctions ui
- UnregisterMeetingStoneFunctions ui
- UnregisterStableFunctions ui
- UnregisterAuctionFunctions ui
- UnregisterGuildFunctions ui
- UnregisterSkillFunctions ui
- UnregisterDuelFunctions ui
- UnregisterReputationFunctions ui
- UnregisterTrainerFunctions ui
- UnregisterTaxiFunctions ui
- UnregisterQuestLogFunctions ui
- UnregisterGossipFunctions ui
- UnregisterItemTextFunctions ui
- UnregisterBuffFunctions ui
- UnregisterActionFunctions ui
- UnregisterPartyFunctions ui
- UnregisterMacroFunctions ui
- UnregisterTalentFunctions ui
- UnregisterPetitionFunctions ui
- UnregisterGuildRegistrarFunctions ui
- UnregisterTabardFunctions ui
- UnregisterCraftFunctions ui
- UnregisterBankFunctions ui
- UnregisterContainerFunctions ui
- UnregisterMerchantFunctions ui
- UnregisterTradeSkillFunctions ui
- UnregisterQuestFunctions ui
- UnregisterCameraScriptFunctions uicamera
- UnregisterInputScriptFunctions input
- UnloadGameScriptFunctions ui
- UnregisterUnitFunctions ui
- UnregisterSocialScriptFunctions net
- UnregisterSpellTargetingScripts spell
- UnloadFrameScriptFunctions ui
Callees 5
- lua_insert lua
- lua_pushnil lua
- lua_pushstring lua
- lua_settable lua
- FrameScript::GetContext ui
Calls and jumps by a bare address, from tables/calls.tsv.