Add libuv

This commit is contained in:
wheremyfoodat 2023-10-30 19:01:26 +02:00
parent e900e9d614
commit 7b9012671a
5 changed files with 25 additions and 1 deletions

View file

@ -1,6 +1,10 @@
#ifdef PANDA3DS_ENABLE_LUA
#include "lua_manager.hpp"
extern "C" {
#include "luv.h"
}
void LuaManager::initialize() {
L = luaL_newstate(); // Open Lua
@ -11,6 +15,9 @@ void LuaManager::initialize() {
}
luaL_openlibs(L);
lua_pushstring(L, "luv");
luaopen_luv(L);
lua_settable(L, LUA_GLOBALSINDEX);
initializeThunks();
initialized = true;