1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-11-08 19:09:58 +00:00

Update progdor2.lua

This commit is contained in:
LDDestroier 2020-02-01 18:38:12 -05:00 committed by GitHub
parent f0499b7411
commit bdc9deef5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,6 +338,7 @@ end
local inputPath = argList[1]
local outputPath = argList[2] or inputPath
local defaultAutoExtractPath = argList[3]
local exists, mode
if inputPath == "moo" and not fs.exists(inputPath) then
@ -911,7 +912,8 @@ elseif mode == "pack" then
sPrint("Tacking on self-extractor.")
archive = ([[
local tArg = {...}
local outputPath, file = tArg[1] and fs.combine(shell.dir(), tArg[1]) or shell.getRunningProgram()
local outputPath, file = tArg[1] and fs.combine(shell.dir(), tArg[1]) or ]] .. ((defaultAutoExtractPath and ("\"" .. defaultAutoExtractPath .. "\"")) or "shell.getRunningProgram()") .. [[
local safeColorList = {[colors.white] = true,[colors.lightGray] = true,[colors.gray] = true,[colors.black] = true}
local stc = function(color) if (term.isColor() or safeColorList[color]) then term.setTextColor(color) end end
local archive = textutils.unserialize(]] ..