mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 18:46:43 +00:00
Add boot image file. Moved autorun files to boot/autorun
This commit is contained in:
parent
2ed070f7ab
commit
dc7958d206
7 changed files with 3 additions and 3 deletions
BIN
Capy64/Assets/Lua/boot/vendor.bmp
Normal file
BIN
Capy64/Assets/Lua/boot/vendor.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
|
@ -20,7 +20,7 @@ local function showError(err)
|
||||||
end
|
end
|
||||||
|
|
||||||
function os.version()
|
function os.version()
|
||||||
return "CapyOS 0.0.1"
|
return "CapyOS 0.0.2"
|
||||||
end
|
end
|
||||||
|
|
||||||
term.setSize(51, 19)
|
term.setSize(51, 19)
|
||||||
|
@ -29,9 +29,9 @@ gpu.setScale(2)
|
||||||
term.setPos(1, 1)
|
term.setPos(1, 1)
|
||||||
term.write(_HOST)
|
term.write(_HOST)
|
||||||
|
|
||||||
local files = fs.list("/boot")
|
local files = fs.list("/boot/autorun")
|
||||||
for k, v in ipairs(files) do
|
for k, v in ipairs(files) do
|
||||||
local func, err = loadfile("/boot/" .. v)
|
local func, err = loadfile("/boot/autorun/" .. v)
|
||||||
if not func then
|
if not func then
|
||||||
showError(err)
|
showError(err)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue