mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-21 17:07:39 +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:
@@ -21,7 +21,15 @@ local function createShellEnv( sDir )
|
|||||||
tEnv[ "multishell" ] = multishell
|
tEnv[ "multishell" ] = multishell
|
||||||
|
|
||||||
local package = {}
|
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.path = "?;?.lua;?/init.lua"
|
||||||
package.preload = {}
|
package.preload = {}
|
||||||
package.loaders = {
|
package.loaders = {
|
||||||
|
Reference in New Issue
Block a user