chris proofing the bootloader

This commit is contained in:
2026-01-16 17:13:12 -05:00
parent 55fdddeff8
commit 83814311e5
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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")