forked from Hyperion/HyperionOS
chris proofing the bootloader
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
--:Minify:--
|
--:Minify:--
|
||||||
local BOOT_DRIVE_PATH=... or "/$"
|
local BOOT_DRIVE_PATH=({...})[1] or "/$"
|
||||||
---@diagnostic disable-next-line: undefined-global
|
---@diagnostic disable-next-line: undefined-global
|
||||||
local term = term
|
local term = term
|
||||||
local os = os
|
local os = os
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
--:Minify:--
|
--:Minify:--
|
||||||
sleep(1)
|
sleep(1)
|
||||||
local BOOT_DRIVE_PATH=... or "/$"
|
local BOOT_DRIVE_PATH=({...})[1] or "/$"
|
||||||
-- UnBIOS by JackMacWindows
|
-- UnBIOS by JackMacWindows
|
||||||
-- This will undo most of the changes/additions made in the BIOS, but some things may remain wrapped if `debug` is unavailable
|
-- This will undo most of the changes/additions made in the BIOS, but some things may remain wrapped if `debug` is unavailable
|
||||||
-- To use, just place a `bios.lua` in the root of the drive, and run this program
|
-- To use, just place a `bios.lua` in the root of the drive, and run this program
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
local diskpath="put your path here"
|
local diskpath="put your path here"
|
||||||
periphemu.create("right", "drive")
|
periphemu.create("right", "drive")
|
||||||
disk.insertDisk("right", diskpath)
|
disk.insertDisk("right", diskpath)
|
||||||
local file = fs.open("/disk/boot/cct/eeprom")
|
local file = fs.open("/disk/boot/cct/eeprom", "r")
|
||||||
local text = file.readAll()
|
local text = file.readAll()
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
local func = load(text, "@bios.lua")
|
local func = load(text, "@bios.lua")
|
||||||
|
|
||||||
func()
|
func("/disk")
|
||||||
Reference in New Issue
Block a user