mirror of
https://github.com/kepler155c/opus
synced 2025-10-18 17:27:39 +00:00
transition tot kernel
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
local DEFAULT_UPATH = 'https://raw.githubusercontent.com/kepler155c/opus/develop/sys/apis'
|
||||
local DEFAULT_UPATH = 'https://raw.githubusercontent.com/kepler155c/opus/develop-1.8/sys/apis'
|
||||
local PASTEBIN_URL = 'http://pastebin.com/raw'
|
||||
local GIT_URL = 'https://raw.githubusercontent.com'
|
||||
|
||||
|
@@ -125,9 +125,9 @@ function Manager:init()
|
||||
focused = true })
|
||||
|
||||
elseif ch and self.currentPage then
|
||||
if not self.currentPage.parent.device.side then
|
||||
--if not self.currentPage.parent.device.side then
|
||||
self:click(ch, button, x, y)
|
||||
end
|
||||
--end
|
||||
end
|
||||
end,
|
||||
|
||||
|
@@ -412,9 +412,9 @@ function Util.httpGet(url, headers)
|
||||
end
|
||||
|
||||
function Util.download(url, filename)
|
||||
local contents = Util.httpGet(url)
|
||||
local contents, msg = Util.httpGet(url)
|
||||
if not contents then
|
||||
error('Failed to download ' .. url)
|
||||
error(string.format('Failed to download %s\n%s', url, msg))
|
||||
end
|
||||
|
||||
if filename then
|
||||
@@ -441,6 +441,7 @@ function Util.runUrl(env, url, ...) -- os.run equivalent
|
||||
end
|
||||
|
||||
function Util.run(env, path, ...)
|
||||
if type(env) ~= 'table' then error('Util.run: env must be a table', 2) end
|
||||
setmetatable(env, { __index = _G })
|
||||
local fn, m = loadfile(path, env)
|
||||
if fn then
|
||||
|
Reference in New Issue
Block a user