Marlingaming

CC Tweaked CCSPS Iron - Client App Install Part

Jan 24th, 2022 (edited)
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. --this Script setups the given file if is a client App/shortcut
  2.  
  3.  
  4. local tArg = {...}
  5. settings.load(".settings")
  6. local FileName = tArg[1]
  7. local Code = tArg[2]
  8. local DisplayName = tArg[3]
  9. local Paster = settings.get("osPaster")
  10.  
  11. local Path = fs.combine(settings.get("ClientAppFolder"),FileName)
  12.  
  13. shell.run(Paster,"get",Code,Path)
  14.  
  15. local AppPaths = settings.get("ClientApps_Paths")
  16. local AppNames = settings.get("ClientApps_Names")
  17. AppPaths[#AppPaths + 1] = Path
  18. AppNames[#AppNames + 1] = DisplayName
  19. settings.set("ClientApps_Paths",AppPaths)
  20. settings.set("ClientApps_Names",AppNames)
  21. settings.save(".settings")
  22. shell.run("os/System/Scripts/ShortcutWriter",DisplayName,Path,"blank")
Add Comment
Please, Sign In to add comment