From 579f4a5bd29d76c7379ec9754705e8e9291ff371 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 5 Mar 2019 13:32:12 -0500 Subject: Added dev mode for now --- .gitignore | 1 + startup | 7 +++++++ system/boot.lua | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2272205..b944187 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ home/ system/bitUI.config +dev_mode \ No newline at end of file diff --git a/startup b/startup index 71a1f16..7ed3e0d 100644 --- a/startup +++ b/startup @@ -28,9 +28,16 @@ function bootloaderInput() shell.run("/system/boot.lua") elseif input == "2" then clear() + if fs.exists("dev_mode") then + print("You are running developer mode! You cannot update bit-UI.") + clear() + bootloader() + bootloaderInput() + else print("Running updater...") sleep(3) shell.run("pastebin", "run", "7XY80hfG") + end elseif input == "3" then clear() print(os.version()) diff --git a/system/boot.lua b/system/boot.lua index 6ba6a18..3061d57 100644 --- a/system/boot.lua +++ b/system/boot.lua @@ -1,7 +1,7 @@ -- bits-UI: An operating system for ComputerCraft. Licensed with GPL-3.0. -local version = "1.0 Alpha 1" +local version = "1.0 Alpha 2" local desktop = "/system/desktop.lua" term.clear() -- cgit v1.2.3