veeir

installer for CBox Game Console OS

Jul 23rd, 2023
5
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. _G.at = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3. settings.load("/.settings")
  4. --_G.logm = peripheral.find("monitor")
  5. --logm.write("Loading menu API\n")
  6. os.loadAPI("/system/menu")
  7. function _G.bootAnim()
  8. term.setBackgroundColor(colors.black)
  9. term.clear()
  10. term.setCursorPos(1,1)
  11. local w,h = term.getSize()
  12. menu.center("Cbox",h/2,colors.lime)
  13. sleep(2)
  14. bootAnimB()
  15. end
  16. function _G.bootAnimB()
  17. term.setBackgroundColor(colors.black)
  18. term.clear()
  19. term.setCursorPos(1,1)
  20. local w,h = term.getSize()
  21. menu.center("Cbox",h/2,colors.lime)
  22. menu.center("Goldcore",h,colors.white)
  23. sleep(2)
  24. end
  25. bootAnim()
  26. os.loadAPI("/system/apis/save.lua")
  27. os.loadAPI("/system/apis/dlp.lua")
  28. os.loadAPI("/system/apis/threed.lua")
  29. --os.loadAPI("/system/rsa")
  30. --logm.write("Starting Dashboard\n")
  31. function os.version()
  32. return "CBox"
  33. end
  34. if not (settings.get("setup.done") == true) then
  35. shell.run("/system/apps/200001/main.lua")
  36. end
  37. shell.run("/system/apps/200000/main.lua")
  38. shell.run("/system/crash.lua 000-200000")
  39. os.reboot()
Add Comment
Please, Sign In to add comment