From dc7958d206870eae8b75efb760f4156df6a3e309 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Thu, 2 Feb 2023 12:30:41 +0100 Subject: [PATCH] Add boot image file. Moved autorun files to boot/autorun --- .../Lua/boot/{ => autorun}/00_package.lua | 0 .../Assets/Lua/boot/{ => autorun}/01_stdio.lua | 0 .../Assets/Lua/boot/{ => autorun}/02_http.lua | 0 .../Assets/Lua/boot/{ => autorun}/02_timer.lua | 0 .../Assets/Lua/boot/{ => autorun}/99_shell.lua | 0 Capy64/Assets/Lua/boot/vendor.bmp | Bin 0 -> 49290 bytes Capy64/Assets/Lua/init.lua | 6 +++--- 7 files changed, 3 insertions(+), 3 deletions(-) rename Capy64/Assets/Lua/boot/{ => autorun}/00_package.lua (100%) rename Capy64/Assets/Lua/boot/{ => autorun}/01_stdio.lua (100%) rename Capy64/Assets/Lua/boot/{ => autorun}/02_http.lua (100%) rename Capy64/Assets/Lua/boot/{ => autorun}/02_timer.lua (100%) rename Capy64/Assets/Lua/boot/{ => autorun}/99_shell.lua (100%) create mode 100644 Capy64/Assets/Lua/boot/vendor.bmp diff --git a/Capy64/Assets/Lua/boot/00_package.lua b/Capy64/Assets/Lua/boot/autorun/00_package.lua similarity index 100% rename from Capy64/Assets/Lua/boot/00_package.lua rename to Capy64/Assets/Lua/boot/autorun/00_package.lua diff --git a/Capy64/Assets/Lua/boot/01_stdio.lua b/Capy64/Assets/Lua/boot/autorun/01_stdio.lua similarity index 100% rename from Capy64/Assets/Lua/boot/01_stdio.lua rename to Capy64/Assets/Lua/boot/autorun/01_stdio.lua diff --git a/Capy64/Assets/Lua/boot/02_http.lua b/Capy64/Assets/Lua/boot/autorun/02_http.lua similarity index 100% rename from Capy64/Assets/Lua/boot/02_http.lua rename to Capy64/Assets/Lua/boot/autorun/02_http.lua diff --git a/Capy64/Assets/Lua/boot/02_timer.lua b/Capy64/Assets/Lua/boot/autorun/02_timer.lua similarity index 100% rename from Capy64/Assets/Lua/boot/02_timer.lua rename to Capy64/Assets/Lua/boot/autorun/02_timer.lua diff --git a/Capy64/Assets/Lua/boot/99_shell.lua b/Capy64/Assets/Lua/boot/autorun/99_shell.lua similarity index 100% rename from Capy64/Assets/Lua/boot/99_shell.lua rename to Capy64/Assets/Lua/boot/autorun/99_shell.lua diff --git a/Capy64/Assets/Lua/boot/vendor.bmp b/Capy64/Assets/Lua/boot/vendor.bmp new file mode 100644 index 0000000000000000000000000000000000000000..8d23632906d6e5fe0dfb6365fa0b17c6309b4dbd GIT binary patch literal 49290 zcmeH|F>X{r5JVSJXGENY12}Pnkem>52vP!KUxiCp5O5VzPGG)vkyz>P8%=4u>7G?t zf30;*xw`A^81COcJs*x=Puuq|+w1G!*Q>+Z?cMhEd^o(hJH3uSAHTgE4yWh%)BVHa z=YMB&?_ST@>@oopFaZ-V0TVC*6EFc2FaZ-V0TVC*6EFc2FaZ-V0TVC*B=Gac_mBq% zhzGQc7_*F>`l@l(8l(8OR?iwXf<|_s`B( z_sRCFeO14@e|EmQPqts}tNPXbv-8z`vi)jb)vxZKov-eb?N|G%es%xse085}zuH&z ztNUl?tNUd8)xN4<-9I~D-6z{meN~N@pRb>g7rke~8b*Qu|n69+Yi{FJ}CPJLCKIH)<~r~K7*>Z|I+LCqmQ<*%+&UsWd# zY7Y4+e|0^(ubQv=&3{Zl<*E9|)BB%h_f_*%e}BT`4YT{I`Ko{1uK#IvUo~I#_a{8w zFuSjsulmRB`k!X^Rr6JUf5PJpv-_&~s(;+B|0(rVb!tjEQGUu@=YMmWeW$aK(b$)tA_YRr!1ZtffSY_-`OLcyF zM)wYx^8{+09av@TP)l`wdPesSnezl{ogG+Z>`+T}etJgt4w>@=YMmWeW$aK(b$)tA z_YRr!1ZtfhK7P9RbYOVR4z*P0r(cA>iPv=R@VoN_YMth9{uzHSwN&S)`~J_f%5a*0 z2G#jY^Pgvx;WYmYs`Ht|pY)9XE6+1&^IyMTEh0?@yyRROM80rn!5gRZ? z9IASme--)DT=O^oS^~AxegDnBmO$-v-+%M3CE)2MU;-v!0w!PrCSU?4U;-v!0w!Pr TCSU?4U;-v!0w!PrQ3U<~j1pkR literal 0 HcmV?d00001 diff --git a/Capy64/Assets/Lua/init.lua b/Capy64/Assets/Lua/init.lua index 00bc02e..cd1a73a 100644 --- a/Capy64/Assets/Lua/init.lua +++ b/Capy64/Assets/Lua/init.lua @@ -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