made it easier to check for compat

This commit is contained in:
2026-05-01 16:55:50 +03:00
parent f255b417e4
commit 17656b9805
3 changed files with 26 additions and 6 deletions

View File

@@ -61,12 +61,11 @@ do
-- backwards compatibility, may remove later
local eeprom = component.list("eeprom")()
local bootAddr = nil
computer.getBootAddress = function()
return bootAddr
return boot_invoke(eeprom, "getData")
end
computer.setBootAddress = function(address)
bootAddr = address
boot_invoke(eeprom, "setData", address)
end
do