mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
BlizzardScriptAPI.md and raw_globals.txt were built by walking the 54 FrameScript_RegisterFunction batches, so the Lua standard libraries — bound by luaL_openlib from luaL_reg tables at state creation — were missing entirely. That gap read as "1.12 has no debugprofilestart", which is wrong: the pair is stock since 1.7.0, in the base-library table at 0x00811E28 (36 entries: setglobal … debugstack). Add the table to both files, with the mechanism (FUN_00703B80 runs the lib open and the alias snippet at .data 0x008722E8 right before FUN_LOAD_SCRIPT_FUNCTIONS), the debugprofile pair's clock (rdtsc delta over a boot-calibrated ticks-per-second, milliseconds as a double), and the rule this taught: check these tables or /dump the name before declaring a global absent.