list all designs under save/load
This commit is contained in:
@@ -119,6 +119,10 @@ local function newdesign()
|
||||
if action == 3 then return end -- exit
|
||||
if action == 1 then -- save
|
||||
reset()
|
||||
for _,v in pairs(fs.list("designs")) do
|
||||
term.write(v)
|
||||
incline()
|
||||
end
|
||||
write("Enter name: ")
|
||||
local name = read()
|
||||
local file = fs.open("designs/"..name, "w")
|
||||
@@ -130,6 +134,10 @@ local function newdesign()
|
||||
end
|
||||
if action == 2 then -- load
|
||||
reset()
|
||||
for _,v in pairs(fs.list("designs")) do
|
||||
term.write(v)
|
||||
incline()
|
||||
end
|
||||
write("Enter name: ")
|
||||
local name = read()
|
||||
if not fs.exists("designs/"..name) then
|
||||
|
||||
Reference in New Issue
Block a user