mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-27 01:14:46 +00:00
Merge pull request #255 from SquidDev-CC/feature/add-package-loaded
Include standard Lua libraries in package.loaded
This commit is contained in:
commit
757b1efd7e
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user