Update images.lua

This commit is contained in:
Robert Jelic
2022-12-30 02:30:48 +01:00
committed by GitHub
parent a0db5ecb61
commit 61e38d89e8

View File

@@ -2,12 +2,14 @@ local sub,floor,rep = string.sub,math.floor,string.rep
local function loadNFPAsBimg(path)
local bimg = {{}}
local nfp = fs.open("test.nfp", "r")
for line in nfp.readLine do
table.insert(bimg[1], {rep(" ",#line), rep(" ",#line), line})
local nfp = fs.open(path, "r")
if(nfp~=nil)then
for line in nfp.readLine do
table.insert(bimg[1], {rep(" ",#line), rep(" ",#line), line})
end
nfp.close()
return bimg
end
nfp.close()
return bimg
end
local function loadNFP(path)