mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-05 13:53:38 +00:00
There is a problem when a Thread stops: it destroys all of the modules that it required. This is because we unconditionally call luax_atexit when modules are required, and when the thread lua_State dies it takes all of the modules with it. To fix this, lovr<Module>Init will return whether or not initialization successfully happened, which provides us with enough info to know if we should place the luax_atexit destructor |
||
---|---|---|
.. | ||
types | ||
audio.c | ||
data.c | ||
data.h | ||
event.c | ||
event.h | ||
filesystem.c | ||
graphics.c | ||
graphics.h | ||
headset.c | ||
lovr.c | ||
math.c | ||
math.h | ||
physics.c | ||
thread.c | ||
timer.c |