Advertisement
Marlingaming

System startup

Apr 1st, 2022 (edited)
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. local w, h = term.getSize()
  2.  
  3. function Desktop()
  4.  
  5. shell.run("os/Handlers/PocketDesktop.lua")
  6. end
  7.  
  8. function Listener()
  9. if peripheral.isPresent("modem") then
  10. shell.run("os/Handlers/NetworkReceiver.lua")
  11. end
  12. end
  13.  
  14. function Graphics()
  15. shell.run("os/Handlers/GraphicsHandler.lua","start")
  16. end
  17.  
  18. function TaskManager()
  19.  
  20. end
  21.  
  22. function Ani()
  23. shell.run("Player","os/BootCompletion.vid",w/2 - 7, h/8)
  24. end
  25.  
  26. function BootRun()
  27. shell.run("boot/APIloader.lua","start")
  28. end
  29.  
  30. settings.load("os/settings.txt")
  31. term.clear()
  32. term.setCursorPos(1,1)
  33. if settings.get("os_activated") == true then
  34. BootRun()
  35. Ani()
  36. parallel.waitForAll(Listener,Desktop,Graphics,TaskManager)
  37. else
  38. print("////SystemMessage////")
  39. print("to activate your OS, Type the following Command")
  40. print("'System process activation'")
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement