Skip to content

Commit e62bcfd

Browse files
committed
Added TODO comments for problems running UNZIP.LUA on 16-bit machines.
1 parent 4ed4a08 commit e62bcfd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/UNZIP.LUA

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ function unzip(z, d, l, x)
6161
if not s or #s < 30 or not s:find("^PK\3\4") then break end
6262
v, fl, cm, _, _, ec, cs, us, nl, el = string.unpack("<HHHHHIIIHH", s, 5)
6363

64+
--TODO: Fix filename length on 16-bit builds
6465
fn, E = f:read(nl) D() -- read the filename
6566
if el > 0 then f:seek(re, el) end
6667

@@ -127,6 +128,7 @@ function unzip(z, d, l, x)
127128
local c = R()
128129
if c then W(c) else break end
129130
end
131+
--TODO: Fix pcall hang on 16-bit builds
130132
elseif (cm == 8 or cm == 9) and pcall(require, "INFLATE") then -- deflated file
131133
inflate(R, W, of)
132134
else

0 commit comments

Comments
 (0)