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:
@@ -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')
|
||||
|
Reference in New Issue
Block a user