Advertisement
Marlingaming

CCSPS IRON 3.0.0 - Primary Console

Jun 15th, 2023
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. local Os_state = 0--0=disabled,1=boot,2=crashhandler,3=basic
  2.  
  3. local console_delay = 5--delay between pass events
  4.  
  5. function loop()
  6. local Timer
  7. while true do
  8. if Os_state == 1 then if shell.run("boot/boot_primary.os") == true then Os_state = 3 else Os_state = 2 end elseif Os_state == 2 then break end
  9. Timer = os.setTimer(console_delay)
  10. local a, b, c, d, e, f, g, h = os.pullEvent()
  11. if a ~= "timer" then os.cancelTimer(Timer) end
  12. if a == "application" and Os_state == 3 then
  13.  
  14. elseif (a == "mouse_click" or a == "mouse_drag" or a == "mouse_up") and Os_state == 3 then
  15.  
  16. elseif a == "key" and Os_state == 3 then
  17.  
  18. elseif a == "security" then
  19.  
  20. elseif a == "installer" then
  21.  
  22. end
  23. end
  24. shell.run("system/security/crashhandler.lua")
  25. end
  26.  
  27. loop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement