Reapply "Nonfunctional virtual component support"

This reverts commit bc06ec457d.
This commit is contained in:
Ponali
2025-06-14 17:48:27 +02:00
parent bc06ec457d
commit de035e9d2e
3 changed files with 81 additions and 12 deletions
+3 -1
View File
@@ -25,7 +25,9 @@ gpu.setBackground(0x000000)
gpu.fill(1, 1, resx, resy, " ")
local result, reason = xpcall(loadthething, handleError)
if not result then
local computer = import("computer") or computer
if import then
local computer = import("computer")
end
gpu.setBackground(0x000000)
gpu.fill(1, 1, resx, resy, " ")
gpu.setBackground(0x800000)