Hi folks!
How I can get lua_State ptr? How many lua_States in WoW? Is each addition and console have each own lua_State? Someone pointed that lua_API can be called not only from main thread.
P.S. I have an idea of hooking lua_open/lua_close for tracking all states (looks like not safe enough). But what about thread local storage, is lua_State ptr there?
Best regards and ty