mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 12:39:13 +12:00
Update luv bindings to be disabled on Android
This commit is contained in:
parent
8cee60ebf5
commit
362b8e6621
2 changed files with 14 additions and 10 deletions
|
@ -1,9 +1,11 @@
|
|||
#ifdef PANDA3DS_ENABLE_LUA
|
||||
#include "lua_manager.hpp"
|
||||
|
||||
#ifndef __ANDROID__
|
||||
extern "C" {
|
||||
#include "luv.h"
|
||||
}
|
||||
#endif
|
||||
|
||||
void LuaManager::initialize() {
|
||||
L = luaL_newstate(); // Open Lua
|
||||
|
@ -13,13 +15,15 @@ void LuaManager::initialize() {
|
|||
initialized = false;
|
||||
return;
|
||||
}
|
||||
|
||||
luaL_openlibs(L);
|
||||
|
||||
#ifndef __ANDROID__
|
||||
lua_pushstring(L, "luv");
|
||||
luaopen_luv(L);
|
||||
lua_settable(L, LUA_GLOBALSINDEX);
|
||||
initializeThunks();
|
||||
#endif
|
||||
|
||||
initializeThunks();
|
||||
initialized = true;
|
||||
haveScript = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue