mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-03 18:14:01 +00:00
Fix cmake build + disable "unsafe" Lua package table
This commit is contained in:
parent
86d2fcebda
commit
8b0ccb2ee4
2 changed files with 8 additions and 2 deletions
|
@ -10682,6 +10682,8 @@ lua_State *ScriptInterface::createLuaVM()
|
||||||
lua_setglobal(state, "os");
|
lua_setglobal(state, "os");
|
||||||
lua_pushnil(state);
|
lua_pushnil(state);
|
||||||
lua_setglobal(state, "io");
|
lua_setglobal(state, "io");
|
||||||
|
lua_pushnil(state);
|
||||||
|
lua_setglobal(state, "package");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set up various tables for state management:
|
// Set up various tables for state management:
|
||||||
|
|
|
@ -661,9 +661,13 @@ SET(LUA_SRCS
|
||||||
${LUASRCDIR}/ldump.c
|
${LUASRCDIR}/ldump.c
|
||||||
${LUASRCDIR}/lfunc.c
|
${LUASRCDIR}/lfunc.c
|
||||||
${LUASRCDIR}/lgc.c
|
${LUASRCDIR}/lgc.c
|
||||||
|
${LUASRCDIR}/linit.c
|
||||||
|
${LUASRCDIR}/liolib.c
|
||||||
${LUASRCDIR}/lmem.c
|
${LUASRCDIR}/lmem.c
|
||||||
|
${LUASRCDIR}/loadlib.c
|
||||||
${LUASRCDIR}/lobject.c
|
${LUASRCDIR}/lobject.c
|
||||||
${LUASRCDIR}/lopcodes.c
|
${LUASRCDIR}/lopcodes.c
|
||||||
|
${LUASRCDIR}/loslib.c
|
||||||
${LUASRCDIR}/lstate.c
|
${LUASRCDIR}/lstate.c
|
||||||
${LUASRCDIR}/lstring.c
|
${LUASRCDIR}/lstring.c
|
||||||
${LUASRCDIR}/ltable.c
|
${LUASRCDIR}/ltable.c
|
||||||
|
|
Loading…
Add table
Reference in a new issue