Update sPhone.lua

This commit is contained in:
Ale32bit 2016-11-01 21:28:11 +01:00 committed by GitHub
parent 9221687665
commit 18d597d8d4

View file

@ -685,6 +685,11 @@ end
sPhone.colourPicker = sPhone.colorPicker -- For UK
function sPhone.install(spk)
if not fs.exists("/.sPhone/config/spklist") then
local f = fs.open("/.sPhone/config/spklist","w")
f.write("{}")
f.close()
end
if string.getExtension(spk) == "spk" then
if fs.exists(spk) and not fs.isDir(spk) then
local f = fs.open(spk,"r")