added a example for objects

This commit is contained in:
Robert Jelic
2022-05-20 19:24:36 +02:00
parent 4f20ede76a
commit a0c55bdd6e
2 changed files with 52 additions and 6 deletions

View File

@@ -11,7 +11,6 @@ local requiredFiles = {
"lib/eventSystem.lua",
"lib/process.lua",
"lib/utils.lua",
}
local basalt = ""
@@ -45,11 +44,13 @@ basalt = basalt..file.readAll().."\n"
file.close()
for _,v in pairs(objects)do
local path = fs.combine(fs.combine(absoluteFilePath, "objects"), v)
if not(fs.isDir(path))then
local file = fs.open(path, "r")
basalt = basalt..file.readAll().."\n"
file.close()
if(v~="example.lua")then
local path = fs.combine(fs.combine(absoluteFilePath, "objects"), v)
if not(fs.isDir(path))then
local file = fs.open(path, "r")
basalt = basalt..file.readAll().."\n"
file.close()
end
end
end