SHARE
TWEET

SimSoft Update 4.0.1

Simlor_GER Jul 9th, 2016 (edited) 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --SimSoft 4.0.1 Update
  2.  
  3. print("Start-Update 4.0.1")
  4.  
  5. local datei = http.get("http://pastebin.com/raw/4246xccR")
  6. if not datei then
  7.  BC(256)
  8.  Clear()
  9.  TC(16384)
  10.  print("Please, check you internet connection!")
  11.  print("Or try it later again.")
  12.  sleep(3)
  13. else
  14.  
  15. --Download Function
  16.  
  17.  function Download(CodePB, Pfad)
  18.   local datei = http.get("http://pastebin.com/raw/"..CodePB)
  19.   datei = datei.readAll()
  20.  
  21.   local file = fs.open(Pfad, "w")
  22.   file.write(datei)
  23.   file.close()
  24.  end
  25.  fs.delete("SimSoft/System/SystemUpdate")
  26.  Download("Yv4VUL6Z", "SimSoft/System/SystemUpdate")
  27.  
  28.  fs.delete("SimSoft/System/SappS")
  29.  Download("4246xccR", "SimSoft/System/SappS")
  30.  
  31.  file = fs.open("SimSoft/Data/Config","r")
  32.  local fileData = {}
  33.  local line = file.readLine()
  34.  repeat
  35.  table.insert(fileData,line)
  36.  line = file.readLine()
  37.  until line == nil
  38.  file.close()
  39.  
  40.  a = fileData[1]
  41.  b = fileData[2]
  42.  version = "4.0.1"
  43.  sprache = fileData[4]
  44.  
  45.  local file = fs.open("SimSoft/Data/Config","w")
  46.  file.close()
  47.    
  48.  local file = fs.open("SimSoft/Data/Config","a")
  49.  file.writeLine(a)
  50.  file.writeLine(b)
  51.  file.writeLine(version)
  52.  file.writeLine(sprache)
  53.  file.close()
  54. end
  55.  
  56. --end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top