compression read missing

This commit is contained in:
kepler155c@gmail.com
2019-12-05 13:27:14 -07:00
parent e0960bd930
commit 6831de37a3
2 changed files with 10 additions and 3 deletions

View File

@@ -180,7 +180,14 @@ function fs.open(fname, flags)
local ctr = 0
local lines
return {
readLine = function()
read = function()
if not lines then
lines = decompress(f.readAll())
end
ctr = ctr + 1
return lines:sub(ctr, ctr)
end,
readLine = function()
if not lines then
lines = split(decompress(f.readAll()))
end