Commit Graph
22 Commits
Author SHA1 Message Date
Brues cd6da18687 Add GlueModuleAutoRegister + FUN_LOAD_GLUE_SCRIPT_FUNCTIONS hook
Module-self-registration pattern for the glue Lua state, mirroring the
existing in-game ModuleAutoRegister. Modules opt in with a file-scope
GlueModuleAutoRegister; the hook on FUN_0046ABB0 (master glue init,
single caller, 35-byte linear function) fires their callbacks after
the engine finishes registering its own 109 glue functions onto the
freshly-created glue state.

Prior attempt hooked the inner FUN_0046DDF0 60-fn batch trampoline and
crashed on Octo, likely from sibling-DLL collision on a small target.
The linear caller is larger and less obvious; no crash, hook fires
cleanly on initial launch and every world->glue return.
2026-05-17 02:29:27 -05:00
Brues 24ed233c4f Add Game::Lua::SetGlobalNumber, move CLASSIC_API_VERSION to its own module
Three sites were doing the same 3-call (PushString + PushNumber + SetTable
on GLOBALS_INDEX) to declare integer globals. Promote to a shared helper
that uses RawSet (globals have no __newindex in vanilla 1.12, so the
metatable check SetTable does is dead).

Also lift CLASSIC_API_VERSION out of DllMain.cpp into api/Version.cpp
so it self-registers via ModuleAutoRegister like every other Lua surface,
instead of being a special case wired into FrameScript_Initialize_h.
2026-05-16 20:50:48 -05:00
Brues 1914eb7ddd PLAYER_STARTED_MOVING / PLAYER_STOPPED_MOVING 2026-05-13 18:43:32 -05:00
Brues 782e0c4e29 NameCacheScan
Scan visible units for name cache
Off by default
2026-05-13 11:04:02 -05:00
Brues 6f66157462 throttle when we flush namecache 2026-05-12 14:00:30 -05:00
Brues cec21c177a GetCurrentChatGUID 2026-05-11 13:57:48 -05:00
Brues 3782dc272a FACTION_STANDING_CHANGED event 2026-05-11 10:21:46 -05:00
Brues b8e3fe9b0e IsModifierKeyDown and all variants 2026-05-10 18:06:58 -05:00
Brues c03385acd2 set CLASSIC_API_VERSION directly through C++
No more running FrameScript_Execute
2026-05-09 10:12:15 -05:00
Brues 1a6fb7f2be GameTooltip:SetItemByID and better item caching 2026-05-08 23:54:25 -05:00
Brues 879b3fedb6 Utilize Storm allocator 2026-05-08 11:46:03 -05:00
Brues 6e566fbc11 ITEM_DATA_LOAD_RESULT 2026-05-07 20:58:16 -05:00
Brues e580bed5f8 restructure how module register themselves 2026-05-07 20:20:35 -05:00
Brues 8a41462205 Item Data Cache Functions 2026-05-07 19:56:06 -05:00
Brues bad5661db8 C_EventUtils.IsEventValid(eventName) 2026-05-07 19:16:28 -05:00
Brues 7ef07c39e2 C_Item.GetItemID(itemLocation) 2026-05-07 18:37:30 -05:00
Brues 62017dca06 C_Item.GetItemInfoInstant 2026-05-07 18:11:38 -05:00
Brues 64ee72c5a7 C_Item.IsBound 2026-05-07 15:54:45 -05:00
Brues 17a64d5bbb restructure project 2026-05-07 13:36:45 -05:00
Brues ffa9559e1b GetSpellInfo 2026-05-07 12:57:45 -05:00
Brues cfe5961970 Added GetQuestIDFromLogIndex 2026-05-07 12:01:28 -05:00
Brues 4737a947a8 Initialize
Currently only GameTooltip:SetSpell is supported
2026-05-07 10:47:34 -05:00