From 578dec4766c44188ffe7ca34b772524424953b67 Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Sun, 12 Jan 2020 00:44:23 -0500 Subject: [PATCH] Added argument to open other program --- windont/ghost.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/windont/ghost.lua b/windont/ghost.lua index a04c177..0098812 100644 --- a/windont/ghost.lua +++ b/windont/ghost.lua @@ -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()