Минимальный startup.lua

Пока что здесь только проверка бут-скриптов...
This commit is contained in:
2026-07-13 16:40:05 +00:00
parent 04e49f1387
commit d0480687e9
+32
View File
@@ -0,0 +1,32 @@
-- H1N1's Framework
print("--- H1N1's Framework ---")
print()
-- Colored print for code readability
local function colorprint(text, clr)
local old = text.getTextColor()
text.setTextColor(clr)
print(text)
text.setTextColor(old)
end
-- Boot folder check
if fs.exists("/boot") then
for _, name in pairs(fs.list("/boot")) do
write(("- %s: "):format(name))
if name:sub(#name-3) == ".lua" then
local result, error = pcall(dofile, "/boot/" .. name)
if not result then
printcolor("ERR", colors.red)
printcolor(error, colors.gray)
else
printcolor("OK", colors.lime)
end
else
printcolor("???", colors.yellow)
end
end
end