1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-11-17 07:14:52 +00:00

Update demo.lua

This commit is contained in:
LDDestroier 2020-02-23 16:14:07 -05:00 committed by GitHub
parent d06e4db74e
commit 9698ad50f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,20 @@ local pBlit = function(t, y, str)
t.blit((" "):rep(#str), str, str)
end
windont = dofile("windont.lua")
if not fs.exists("windont.lua") then
print("'windont.lua' not found! Downloading...")
local net = http.get("https://github.com/LDDestroier/CC/raw/master/windont/windont.lua")
if net then
local file = fs.open("windont.lua", "w")
file.write(net.readAll())
file.close()
net.close()
else
error("Could not download Windon't.", 0)
end
end
local windont = require "windont"
windont.doClearScreen = true
windont.default.alwaysRender = false