mirror of
https://github.com/kepler155c/opus
synced 2024-12-31 19:00:27 +00:00
oops in loadfile replacement
This commit is contained in:
parent
9297223640
commit
d1565c62e0
@ -1,7 +1,7 @@
|
|||||||
local fs = _G.fs
|
local fs = _G.fs
|
||||||
|
|
||||||
-- override bios function to include the actual filename
|
-- override bios function to include the actual filename
|
||||||
function _G.loadfile(filename, env)
|
function _G.loadfile(filename, mode, env)
|
||||||
-- Support the previous `loadfile(filename, env)` form instead.
|
-- Support the previous `loadfile(filename, env)` form instead.
|
||||||
if type(mode) == "table" and env == nil then
|
if type(mode) == "table" and env == nil then
|
||||||
mode, env = nil, mode
|
mode, env = nil, mode
|
||||||
|
@ -13,6 +13,7 @@ local _unpack = table.unpack
|
|||||||
local _bor = bit32.bor
|
local _bor = bit32.bor
|
||||||
local _bxor = bit32.bxor
|
local _bxor = bit32.bxor
|
||||||
|
|
||||||
|
-- support multiple simultaneous gets for same url
|
||||||
if not http.safeGet then -- really no good place to put this hack
|
if not http.safeGet then -- really no good place to put this hack
|
||||||
local reqs = { }
|
local reqs = { }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user