diff --git a/lzwfs/lzwfs.lua b/lzwfs/lzwfs.lua index 46aa869..382bd7a 100644 --- a/lzwfs/lzwfs.lua +++ b/lzwfs/lzwfs.lua @@ -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 diff --git a/packages.list b/packages.list index 092785d..eaee2b8 100644 --- a/packages.list +++ b/packages.list @@ -1,9 +1,9 @@ { - [ 'common' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/common/.package', - [ 'core' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/core/.package', [ 'builder' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/builder/.package', [ 'cash' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/cash/.package', [ 'ccemux' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/ccemux/.package', + [ 'common' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/common/.package', + [ 'core' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/core/.package', [ 'farms' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/farms/.package', -- [ 'forestry' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/forestry/.package', [ 'games' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/games/.package',