1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-10 21:37:43 +00:00

transition to kernel

This commit is contained in:
kepler155c@gmail.com
2018-01-21 05:44:13 -05:00
parent 1c1eb9b782
commit e59400eb2b
16 changed files with 87 additions and 72 deletions

View File

@@ -1,6 +1,7 @@
-- Loads the Opus environment regardless if the file system is local or not
local fs = _G.fs
local http = _G.http
local os = _G.os
local BRANCH = 'develop-1.8'
local GIT_REPO = 'kepler155c/opus/' .. BRANCH
@@ -44,6 +45,14 @@ local function runUrl(file, ...)
error('Failed to download ' .. url)
end
function os.getenv(varname)
return sandboxEnv[varname]
end
function os.setenv(varname, value)
sandboxEnv[varname] = value
end
-- Install require shim
if fs.exists('sys/apis/injector.lua') then
_G.requireInjector = run('sys/apis/injector.lua')