aboutsummaryrefslogtreecommitdiff
path: root/System
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-11-16 16:03:10 -0500
committerAndrew Lee <alee14498@protonmail.com>2020-11-16 16:03:10 -0500
commitd971f492e0939d85bb55361d028dd0fe9428be63 (patch)
tree8fe4766c4a28694a44fee39b9eeb0a4493300dfa /System
parent4475d80db9a8eb0db0b7bb88cf2d76794073f46c (diff)
downloadbits-UI-d971f492e0939d85bb55361d028dd0fe9428be63.tar.gz
bits-UI-d971f492e0939d85bb55361d028dd0fe9428be63.tar.bz2
bits-UI-d971f492e0939d85bb55361d028dd0fe9428be63.zip
loadAPI got depcreated; Renamed Apps to Programs
Diffstat (limited to 'System')
-rw-r--r--System/boot.lua9
-rw-r--r--System/desktop.lua4
-rw-r--r--System/post-setup.lua4
3 files changed, 13 insertions, 4 deletions
diff --git a/System/boot.lua b/System/boot.lua
index 35d212b..2b81f8f 100644
--- a/System/boot.lua
+++ b/System/boot.lua
@@ -23,6 +23,15 @@ print("Starting up bits-UI ".. version .."...")
print(_HOST)
+--[[
+if os.version == "CraftOS 1.8" then
+ print("[OK] Running on the latest version of CraftOS...")
+ sleep(2)
+else
+ print("You are not running CraftOS 1.8. Boot process halted.")
+ sleep(2)
+ os.shutdown()
+end]]--
if term.isColor() then
term.setTextColor(colors.green)
diff --git a/System/desktop.lua b/System/desktop.lua
index 27b7e07..58888ed 100644
--- a/System/desktop.lua
+++ b/System/desktop.lua
@@ -13,11 +13,11 @@
GNU General Public License for more details.
]]--
-os.loadAPI("/System/apis/flib.lua")
+os.require("/System/apis/flib.lua")
local backgroundColour = 32768
local backgroundImage = "/home/.background"
local panelColour = 8192
-local appTitle = "[Apps]"
+local appTitle = "[Programs]"
function drawPanel()
local time = os.time()
diff --git a/System/post-setup.lua b/System/post-setup.lua
index 94c9d65..d213650 100644
--- a/System/post-setup.lua
+++ b/System/post-setup.lua
@@ -12,8 +12,8 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
]]--
-os.loadAPI("/System/apis/sha256.lua")
-os.loadAPI("/System/apis/json.lua")
+os.require("/System/apis/sha256.lua")
+os.require("/System/apis/json.lua")
local config = "/Home/.config"
term.clear()