mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Don't unconditionally run love.jitsetup when love is used as a library
This commit is contained in:
@@ -410,11 +410,6 @@ int luaopen_love(lua_State *L)
|
||||
for (int i = 0; modules[i].name != nullptr; i++)
|
||||
love::luax_preload(L, modules[i].func, modules[i].name);
|
||||
|
||||
// jitsetup is also loaded in the love executable runlove function. It's
|
||||
// needed here too for threads. Note that it doesn't use the love table.
|
||||
love::luax_require(L, "love.jitsetup");
|
||||
lua_pop(L, 1);
|
||||
|
||||
love::luax_insistpinnedthread(L);
|
||||
|
||||
love::luax_insistglobal(L, "love");
|
||||
|
||||
Reference in New Issue
Block a user