1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-12-13 11:40:28 +00:00

Added argument to open other program

This commit is contained in:
LDDestroier 2020-01-12 00:44:23 -05:00 committed by GitHub
parent 8462e3028a
commit 578dec4766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,6 @@
local tArg = {...}
local filename = tArg[1]
if not fs.exists("windont.lua") then
print("'windont.lua' not found! Downloading...")
local net = http.get("https://github.com/LDDestroier/CC/raw/master/windont/windont.lua")
@ -99,7 +102,7 @@ end
local oldTerm = term.redirect(newTerm)
parallel.waitForAny(function()
shell.run("/rom/programs/shell.lua")
shell.run(filename or "/rom/programs/shell.lua")
end, function()
while true do
gstTerm.redraw()