Advertisement
Marlingaming

System Boot

Nov 20th, 2022 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. local function loadAPI()
  2. local List = fs.list("API")
  3. for i = 1, #List do
  4. os.loadApi(fs.combine("API",List[i]),List[i])
  5. end
  6. end
  7.  
  8. local function SystemInt()
  9. local file = fs.open("StartInt_files.txt","r")
  10. local StartInt = textutils.unserialize(file.readAll())
  11. file.close()
  12. for i = 1, #StartInt do
  13. if fs.exists(StartInt[i]) then print(StartInt[i].." found ("..i.."/"..#StartInt..")") else print(StartInt[i].." not found, stopping boot") os.sleep(2) os.shutdown() end
  14. end
  15. end
  16.  
  17. SystemInt()
  18. loadAPI()
  19. shell.run("updatehandler.lua")
  20. shell.run("System1.lua")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement