mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 10:36:44 +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
|
||||
|
||||
function os.version()
|
||||
return "CapyOS 0.0.1"
|
||||
return "CapyOS 0.0.2"
|
||||
end
|
||||
|
||||
term.setSize(51, 19)
|
||||
|
@ -29,9 +29,9 @@ gpu.setScale(2)
|
|||
term.setPos(1, 1)
|
||||
term.write(_HOST)
|
||||
|
||||
local files = fs.list("/boot")
|
||||
local files = fs.list("/boot/autorun")
|
||||
for k, v in ipairs(files) do
|
||||
local func, err = loadfile("/boot/" .. v)
|
||||
local func, err = loadfile("/boot/autorun/" .. v)
|
||||
if not func then
|
||||
showError(err)
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue