mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 04:29:13 +12:00
Add libuv
This commit is contained in:
parent
e900e9d614
commit
7b9012671a
5 changed files with 25 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue