more archive format fixes, oops
This commit is contained in:
parent
c3aed37d97
commit
94a7051112
@ -59,6 +59,7 @@ for k,v in ipairs(files) do
|
|||||||
local content = f:read("*a")
|
local content = f:read("*a")
|
||||||
f:close()
|
f:close()
|
||||||
of:write(genHeader(fnormalize(v:sub(tArgs[1]:len()+1)),content:len()))
|
of:write(genHeader(fnormalize(v:sub(tArgs[1]:len()+1)),content:len()))
|
||||||
|
print(content:len())
|
||||||
of:write(content)
|
of:write(content)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -74,6 +75,7 @@ if lzss then
|
|||||||
local b = f:read(4096)
|
local b = f:read(4096)
|
||||||
if not b or b:len() < 1 then break end
|
if not b or b:len() < 1 then break end
|
||||||
b = lzss.compress(b)
|
b = lzss.compress(b)
|
||||||
|
of:write(cint(b:len(),2))
|
||||||
of:write(b)
|
of:write(b)
|
||||||
end
|
end
|
||||||
f:close()
|
f:close()
|
||||||
|
Loading…
Reference in New Issue
Block a user