From d971f492e0939d85bb55361d028dd0fe9428be63 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 16 Nov 2020 16:03:10 -0500 Subject: loadAPI got depcreated; Renamed Apps to Programs --- System/boot.lua | 9 +++++++++ System/desktop.lua | 4 ++-- System/post-setup.lua | 4 ++-- 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() -- cgit v1.2.3