mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
enforce pocket computer requirement
This commit is contained in:
parent
e851a5275f
commit
38457cfbbc
@ -2,6 +2,9 @@
|
|||||||
-- SCADA System Access on a Pocket Computer
|
-- SCADA System Access on a Pocket Computer
|
||||||
--
|
--
|
||||||
|
|
||||||
|
---@diagnostic disable-next-line: undefined-global
|
||||||
|
local _is_pocket_env = pocket or periphemu
|
||||||
|
|
||||||
require("/initenv").init_env()
|
require("/initenv").init_env()
|
||||||
|
|
||||||
local crash = require("scada-common.crash")
|
local crash = require("scada-common.crash")
|
||||||
@ -22,6 +25,12 @@ local POCKET_VERSION = "v0.10.0-alpha"
|
|||||||
local println = util.println
|
local println = util.println
|
||||||
local println_ts = util.println_ts
|
local println_ts = util.println_ts
|
||||||
|
|
||||||
|
-- check environment (allows Pocket or CraftOS-PC)
|
||||||
|
if not _is_pocket_env then
|
||||||
|
println("You can only use this application on a pocket computer.")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
-- get configuration
|
-- get configuration
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user