more archive format fixes, oops

This commit is contained in:
Izaya 2020-06-06 19:51:41 +10:00
parent c3aed37d97
commit 94a7051112
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ for k,v in ipairs(files) do
local content = f:read("*a")
f:close()
of:write(genHeader(fnormalize(v:sub(tArgs[1]:len()+1)),content:len()))
print(content:len())
of:write(content)
end
end
@ -74,6 +75,7 @@ if lzss then
local b = f:read(4096)
if not b or b:len() < 1 then break end
b = lzss.compress(b)
of:write(cint(b:len(),2))
of:write(b)
end
f:close()