Advertisement
Marlingaming

CC Tweaked CCSPS Iron 2.0.0 - Compressed Program Format Installer

Feb 11th, 2022 (edited)
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. local tArg = {...}
  2. local InstallFile = tArg[1]
  3. local Things = {}
  4.  
  5. local Paster = "os/System/Scripts/SilentPaster.lua"
  6.  
  7. local Folder = fs.combine("os/System/User/Programs",tArg[2])..".cpf"
  8. fs.makeDir(Folder)
  9.  
  10. function Download(I)
  11.  
  12. shell.run(Paster,"get",Things[I][3],fs.combine(Folder,Things[I][2]))
  13. if Things[I][4] == true then
  14. local Path = fs.combine("os/System/Saved/Shortcuts",Things[I][1])
  15. local file = fs.open(Path,"w")
  16. file.writeLine(Things[I][1])
  17. file.writeLine(Things[I][2])
  18. file.writeLine(Things[I][6])
  19. file.writeLine(Things[I][5])
  20. file.close()
  21. else
  22.  
  23. end
  24. end
  25.  
  26. local Li = fs.open(InstallFile,"r")
  27. Things = textutils.unserialize(Li.readAll())
  28. Li.close()
  29. for i = 1, #Things do
  30. Download(i)
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement