Marlingaming

CC Tweaked Personal Computer Imperial OS - Start Program

Jan 13th, 2022 (edited)
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. --this script runs all necessery startup programs, then runs the Boot Program
  2.  
  3. local w, h = term.getSize()
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. settings.load("os/os_SystemFiles/Settings/.os_settings")
  7.  
  8.  
  9.  
  10.  
  11.  
  12. local function BootPrograms()
  13. local BootApps = {settings.get("Boot_Files")}
  14. for i = 1, #BootApps do
  15.     shell.run(BootApps[i])
  16. end
  17. term.clear()
  18. term.setCursorPos(1,(h/2-1))
  19. print("Boot Completed")
  20. print("starting Os")
  21. shell.run(settings.get("Os_StartProgram"))
  22. end
  23.  
  24.  
  25. BootPrograms()
Add Comment
Please, Sign In to add comment