I know that my questions is somewhat weird. But currently I am trying to experiment with the native code and the *.pdb of Factorio. My goal is to extend the current LUA api with some functions just for fun.
My idea is: Injecting a DLL which will perform the typical LUA api functions in order to push a function into the global table of each modding LUA State.
My problem is: I don't know how to get the LUA states, which leads to my questions:
How are the LUA states (lua_State*) stored in Factorio? Is there someway to retrieve them? Is there a function or something else I can use?
I know that this is a weird questions and is not that typical for this forum, sorry for that. But currently I am a little bit stuck.
Thanks in advanced, and have a great day
