Skip to content

Commit

Permalink
#535 updates to configurator launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaylaFischler committed Nov 9, 2024
1 parent 459ddba commit 764638c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions configure.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
print("CONFIGURE> SCANNING FOR CONFIGURATOR...")

if fs.exists("reactor-plc/configure.lua") then require("reactor-plc.configure").configure()
elseif fs.exists("rtu/configure.lua") then require("rtu.configure").configure()
elseif fs.exists("supervisor/configure.lua") then require("supervisor.configure").configure()
elseif fs.exists("coordinator/configure.lua") then require("coordinator.configure").configure()
elseif fs.exists("pocket/configure.lua") then require("pocket.configure").configure()
else
print("CONFIGURE> NO CONFIGURATOR FOUND")
print("CONFIGURE> EXIT")
for _, app in ipairs({ "reactor-plc", "rtu", "supervisor", "coordinator", "pocket" }) do
if fs.exists(app .. "/configure.lua") then
local _, _, launch = require(app .. ".configure").configure()
if launch then shell.execute("/startup") end
return
end
end

print("CONFIGURE> NO CONFIGURATOR FOUND")
print("CONFIGURE> EXIT")

0 comments on commit 764638c

Please sign in to comment.