mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
IsFirstLoadThisSession() - glue-only; true only during the first glue screen since process launch, false after a world->glue logout (login <-> character-select stays within the first session). Backed by a process-static glue-boot counter incremented in the GlueModuleAutoRegister callback (fires once per glue boot). IsOnGlueScreen() - true on a GlueXML screen, false in the world. Registered on both Lua states; since glue and in-game states are mutually exclusive the answer is a constant per state (true from glue, false in-game), so it's callable from either environment with no runtime flag. Verified in-game: first login true/true, post-world-logout false; in-game C_Glue.IsOnGlueScreen() false.