chris proofing the bootloader
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
--:Minify:--
|
||||
local BOOT_DRIVE_PATH=... or "/$"
|
||||
local BOOT_DRIVE_PATH=({...})[1] or "/$"
|
||||
---@diagnostic disable-next-line: undefined-global
|
||||
local term = term
|
||||
local os = os
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--:Minify:--
|
||||
sleep(1)
|
||||
local BOOT_DRIVE_PATH=... or "/$"
|
||||
local BOOT_DRIVE_PATH=({...})[1] or "/$"
|
||||
-- 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
|
||||
-- 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"
|
||||
periphemu.create("right", "drive")
|
||||
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()
|
||||
file.close()
|
||||
|
||||
local func = load(text, "@bios.lua")
|
||||
|
||||
func()
|
||||
func("/disk")
|
||||
Reference in New Issue
Block a user