Advertisement
Simlor_GER

Update - SimSoft 3.1.1 > SimSoft 3.1.2

Jun 3rd, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. --Alle Rechte an SimSoft 3.1 sind "SimlorLP" (oder in Minecraft auch nur "Simlor") vorbehalten.
  2. --Update 3.1.2
  3.  
  4. file = fs.open("SimSoft/Daten/Config","r")
  5. local fileData = {}
  6. local line = file.readLine()
  7. repeat
  8. table.insert(fileData,line)
  9. line = file.readLine()
  10. until line == nil
  11. file.close()
  12.  
  13. a = fileData[1]
  14. b = fileData[2]
  15. version = "3.1.2"
  16. sprache = fileData[4]
  17.  
  18. local file = fs.open("SimSoft/Daten/Config","w")
  19. file.close()
  20.  
  21. local file = fs.open("SimSoft/Daten/Config","a")
  22. file.writeLine(a)
  23. file.writeLine(b)
  24. file.writeLine(version)
  25. file.writeLine(sprache)
  26. file.close()
  27.  
  28. function Download(Pfad, CodePB)
  29.  
  30. fs.delete(Pfad)
  31.  
  32. local datei = http.get("http://pastebin.com/raw/"..CodePB)
  33. datei = datei.readAll()
  34.  
  35. local file = fs.open(Pfad, "w")
  36. file.write(datei)
  37. file.close()
  38. end
  39.  
  40. Download("SimSoft/System/Desktop", "V32EFt9q")
  41. Download("SimSoft/System/SappS", "xvU8Ep0N")
  42. Download("SimSoft/System/SystemStart", "9TDWzqPK")
  43.  
  44. os.reboot()
  45.  
  46. --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement