init: Fixed #71
This commit is contained in:
@@ -47,6 +47,7 @@ gpu.fill(1, 1, resX, resY, " ")
|
|||||||
-- Copying low-level functions in case of post-preload failure
|
-- Copying low-level functions in case of post-preload failure
|
||||||
local pullSignal = computer.pullSignal
|
local pullSignal = computer.pullSignal
|
||||||
local beep = computer.beep
|
local beep = computer.beep
|
||||||
|
local shutdown = computer.shutdown
|
||||||
local unicode = unicode
|
local unicode = unicode
|
||||||
|
|
||||||
local result, reason = xpcall(loadthething, handleError)
|
local result, reason = xpcall(loadthething, handleError)
|
||||||
@@ -180,7 +181,9 @@ if not result then
|
|||||||
scrollRight()
|
scrollRight()
|
||||||
end
|
end
|
||||||
if ev[4] == 28 then
|
if ev[4] == 28 then
|
||||||
computer.shutdown(true)
|
-- Next time copy this function too doofus
|
||||||
|
-- computer.shutdown(true)
|
||||||
|
shutdown(true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if ev[1] == "scroll" then
|
if ev[1] == "scroll" then
|
||||||
|
|||||||
Reference in New Issue
Block a user