1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-12 19:20:29 +00:00

Include standard Lua libraries in package.loaded

PUC Lua includes all builtin libraries in the package.loaded table.
This commit is contained in:
SquidDev 2017-05-18 00:15:21 +01:00
parent 61b2ed36a9
commit d19bc53cb4

View File

@ -21,7 +21,15 @@ local function createShellEnv( sDir )
tEnv[ "multishell" ] = multishell
local package = {}
package.loaded = {}
package.loaded = {
_G = _G,
bit32 = bit32,
coroutine = coroutine,
math = math,
package = package,
string = string,
table = table,
}
package.path = "?;?.lua;?/init.lua"
package.preload = {}
package.loaders = {