Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --SimSoft Yellow - Copyright by Simlor (http://www.computercraft.info/forums2/index.php?/user/55655-simlor/)
- --Update 5.0.1
- file = fs.open("SimSoft/Data/Version","r")
- local fileData = {}
- local line = file.readLine()
- repeat
- table.insert(fileData,line)
- line = file.readLine()
- until line == nil
- file.close()
- Sprache = fileData[4]
- if Sprache == "german" then
- Code1 = "LUX6HVMy"
- Code2 = "iSCumw3S"
- elseif Sprache == "english" then
- Code1 = "jALaL4ap"
- Code2 = "zNnJ9UU7"
- end
- fs.delete("SimSoft/System/Update")
- fs.delete("SimSoft/System/AppStore")
- local cacheBuster = ("%x"):format(math.random(0, 2 ^ 30))
- local datei = http.get("https://pastebin.com/raw/" .. textutils.urlEncode(Code1) .. "?cb=" .. cacheBuster)
- datei = datei.readAll()
- local file = fs.open("SimSoft/System/Update", "w")
- file.write(datei)
- file.close()
- local cacheBuster = ("%x"):format(math.random(0, 2 ^ 30))
- local datei = http.get("https://pastebin.com/raw/" .. textutils.urlEncode(Code2) .. "?cb=" .. cacheBuster)
- datei = datei.readAll()
- local file = fs.open("SimSoft/System/AppStore", "w")
- file.write(datei)
- file.close()
- local file = fs.open("SimSoft/Data/Version", "w")
- file.writeLine("SimSoft System Version")
- file.writeLine("")
- file.writeLine("5.0.1")
- file.writeLine(Sprache)
- file.close()
- os.reboot()
- --end
Add Comment
Please, Sign In to add comment