1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-05 13:53:38 +00:00
lovr/src/api
bjorn 0e99d47394 Fix module destruction;
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
2018-11-19 09:24:28 -08:00
..
types Controller:getVelocity; Controller:getAngularVelocity; 2018-11-19 09:24:10 -08:00
audio.c Fix module destruction; 2018-11-19 09:24:28 -08:00
data.c Fix everything and merge; 2018-09-27 18:38:44 -07:00
data.h Fix everything and merge; 2018-09-27 18:38:44 -07:00
event.c Fix module destruction; 2018-11-19 09:24:28 -08:00
event.h api: more modular helper functions; 2018-09-27 18:38:44 -07:00
filesystem.c Fix module destruction; 2018-11-19 09:24:28 -08:00
graphics.c Fix module destruction; 2018-11-19 09:24:28 -08:00
graphics.h api: more modular helper functions; 2018-09-27 18:38:44 -07:00
headset.c Fix module destruction; 2018-11-19 09:24:28 -08:00
lovr.c Modify module loading; 2018-11-15 07:51:21 -08:00
math.c Fix module destruction; 2018-11-19 09:24:28 -08:00
math.h Move math helpers into lib; 2018-11-15 08:03:51 -08:00
physics.c Fix module destruction; 2018-11-19 09:24:28 -08:00
thread.c Fix module destruction; 2018-11-19 09:24:28 -08:00
timer.c Fix module destruction; 2018-11-19 09:24:28 -08:00