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

remove os api modifications

This commit is contained in:
kepler155c@gmail.com
2018-01-26 06:37:49 -05:00
parent 742d1337a8
commit 15a627f7e9
4 changed files with 12 additions and 22 deletions

View File

@@ -1,17 +1,15 @@
-- 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
_G.OPUS_BRANCH = 'develop-1.8'
local GIT_REPO = 'kepler155c/opus/' .. _G.OPUS_BRANCH
local BASE = 'https://raw.githubusercontent.com/' .. GIT_REPO
local sandboxEnv = setmetatable({ }, { __index = _G })
for k,v in pairs(_ENV) do
sandboxEnv[k] = v
end
sandboxEnv.BRANCH = BRANCH
_G.debug = function() end
@@ -45,14 +43,6 @@ 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')