mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
The hook declared `(void *bounds, int flag)`. The second argument is the frame's elapsed time as a float: the HLAYER drain calls every layer as `cb(layer + 0x18, DAT_00885608)`, and DAT_00885608 is set at 0x00442330 and zeroed at 0x004426C3 once the drain finishes. FUN_00765650 passes it straight to every frame's vtable +0x38 per-frame update, which is where OnUpdate's `%f` comes from -- the same value visible threading through both hooks in a recent backtrace. Rename both parameters and correct the type rather than leave an `int` sitting under a comment calling it a float. ABI-identical: both are 4-byte stack slots under __stdcall and both are forwarded untouched. The Offsets.h note gains the rest of what was verified while checking this: the caller discards the return value, `bounds` is the layer rect and is never read by this callback, and ECX is not read on entry, so it is not a __thiscall in disguise.