This commit is contained in:
kepler155c@gmail.com 2019-03-23 12:20:48 -04:00
parent ea8e981880
commit 235e8d11de
4 changed files with 48 additions and 44 deletions

View File

@ -11,6 +11,7 @@ local UI = require('ui')
local Util = require('util')
local colors = _G.colors
local device = _G.device
local fs = _G.fs
local os = _G.os
local pocket = _G.pocket
@ -168,9 +169,10 @@ local function loadApplications()
pocket = not not pocket,
advancedPocket = pocket and term.isColor(),
advancedComputer = not turtle and not pocket and term.isColor(),
neuralInterface = not not device.neuralInterface,
}
applications = Util.readTable('sys/etc/app.db')
applications = Util.readTable('sys/etc/apps.db')
for dir in pairs(Packages:installed()) do
local path = fs.combine('packages/' .. dir, 'etc/apps.db')

View File

@ -4,6 +4,7 @@ local UI = require('ui')
local colors = _G.colors
if _G.http.websocket then
local config = Config.load('cloud')
local tab = UI.Tab {
@ -33,7 +34,7 @@ To obtain a key, visit:
%shttps://cloud-catcher.squiddev.cc%s then bookmark:
%shttps://cloud-catcher.squiddev.cc/?id=%sKEY
]],
Ansi.orange, Ansi.reset, Ansi.orange, Ansi.black),
Ansi.white, Ansi.reset, Ansi.white, Ansi.white),
},
}
@ -50,4 +51,5 @@ function tab:eventHandler(event)
end
return tab
end

View File

@ -1,4 +1,4 @@
if fs.exists('sys/apps/shell') and fs.exists('sys/apps/shell.lua') then
fs.delete('sys/apps/shell')
end
if fs.exists('sys/autorun/gps.lua') then fs.delete('sys/autorun/gps.lua') end
if fs.exists('sys/etc/app.db') then fs.delete('sys/etc/app.db') end