diff --git a/src/init.lua b/src/init.lua index 5dba8e5..d30e2d5 100644 --- a/src/init.lua +++ b/src/init.lua @@ -1,3 +1,5 @@ +local old = os.pullEvent +os.pullEvent = os.pullEventRaw local function crash(err) if not sPhone then sPhone = { @@ -189,6 +191,8 @@ if argData["-s"] then runningOnStartup = true end +os.pullEvent = old + local ok, err = pcall(function() setfenv(loadstring(script),getfenv())() end) if not ok then