E
This commit is contained in:
@@ -50,7 +50,8 @@ local lua = {
|
|||||||
tonumber = true,
|
tonumber = true,
|
||||||
tostring = true,
|
tostring = true,
|
||||||
type = true,
|
type = true,
|
||||||
xpcall = true
|
xpcall = true,
|
||||||
|
sleep = true
|
||||||
}
|
}
|
||||||
|
|
||||||
for i,v in pairs(_VG) do
|
for i,v in pairs(_VG) do
|
||||||
@@ -86,4 +87,4 @@ end
|
|||||||
|
|
||||||
function aceVM.initVenv()
|
function aceVM.initVenv()
|
||||||
aceVM._VG = deepcopy(_VG)
|
aceVM._VG = deepcopy(_VG)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -96,11 +96,11 @@ function aceVM.start(id, disks)
|
|||||||
if ret[1] == false then
|
if ret[1] == false then
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
local timer = os.startTimer(0)
|
local timer = os.queueEvent("nosleep")
|
||||||
local exit = false
|
local exit = false
|
||||||
repeat
|
repeat
|
||||||
local event = {coroutine.yield()}
|
local event = {coroutine.yield()}
|
||||||
if event[1] == "timer" and event[2]==timer then
|
if event[1] == "nosleep" then
|
||||||
exit=true
|
exit=true
|
||||||
elseif event[1]==nil then
|
elseif event[1]==nil then
|
||||||
elseif event[1]=="key" then
|
elseif event[1]=="key" then
|
||||||
@@ -121,4 +121,4 @@ function aceVM.start(id, disks)
|
|||||||
aceVM.exitVM = false
|
aceVM.exitVM = false
|
||||||
term.clear()
|
term.clear()
|
||||||
term.setCursorPos(1,1)
|
term.setCursorPos(1,1)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
if fs.exists("/aceExit") then
|
|
||||||
return
|
|
||||||
else
|
|
||||||
dofile("/unbios.lua")
|
|
||||||
end
|
|
||||||
Reference in New Issue
Block a user