mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Replaced deprecated lua_open calls with luaL_newstate
This commit is contained in:
+1
-1
@@ -141,7 +141,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
// Create the virtual machine.
|
||||
lua_State *L = lua_open();
|
||||
lua_State *L = luaL_newstate();
|
||||
luaL_openlibs(L);
|
||||
|
||||
love_preload(L, luaopen_love, "love");
|
||||
|
||||
@@ -39,7 +39,7 @@ Thread::ThreadThread::ThreadThread(ThreadData *comm)
|
||||
|
||||
void Thread::ThreadThread::main()
|
||||
{
|
||||
lua_State *L = lua_open();
|
||||
lua_State *L = luaL_newstate();
|
||||
luaL_openlibs(L);
|
||||
#ifdef LOVE_BUILD_STANDALONE
|
||||
love::luax_preload(L, luaopen_love, "love");
|
||||
|
||||
Reference in New Issue
Block a user