Made the package library, except loadlib, available for celx scripting regardless of script system access policy.

pull/3/head
Vincent Giangiulio 2008-09-12 22:05:14 +00:00
parent 8dac3c6931
commit 7f92ad5570
1 changed files with 3 additions and 0 deletions

View File

@ -3287,6 +3287,9 @@ bool LuaState::init(CelestiaCore* appCore)
openLuaLibrary(state, LUA_MATHLIBNAME, luaopen_math);
openLuaLibrary(state, LUA_TABLIBNAME, luaopen_table);
openLuaLibrary(state, LUA_STRLIBNAME, luaopen_string);
// Make the package library, except the loadlib function, available
// for celx regardless of script system access policy.
allowLuaPackageAccess();
#else
lua_baselibopen(state);
lua_mathlibopen(state);