Advertisement
theinsekt

installArcade

Sep 16th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. --pastebin get tb51F5PD installarcade
  2. --installarcade
  3.  
  4.  
  5. function dowload_txUI()
  6.  fs.delete("txUI")
  7.  fs.delete("download_txUI")
  8.  shell.run("pastebin","get", "tuzXZBiz", "download_txUI")
  9.  shell.run("download_txUI")
  10. end
  11.  
  12.  
  13. function download(folder,files,rmFolder,rmFile)
  14.         if rmFolder then
  15.                 fs.delete(folder)
  16.         end
  17.         -- make the folder
  18.         fs.makeDir(folder)
  19.  
  20.         -- download files
  21.         for code, filename in pairs(files) do
  22.                 if rmFile then
  23.                         fs.delete(folder.."/"..filename)
  24.                 end
  25.                 shell.run("pastebin","get", code, folder.."/"..filename)
  26.         end --for
  27. end --function
  28.  
  29. programs={
  30. ["XVV4t1dF"]="startup",
  31. ["NHr1td9D"]="helloworld",
  32. ["Zf2esvzE"]="txUI",-- original by tuogex, theinsekt added 9 lines of code
  33. }
  34.  
  35. print("Installing arcade...")
  36. --dowload_txUI()
  37. download("",programs,false,true)
  38. print("Done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement