forked from izaya/OC-PsychOS2
pkgfs now stores absolute paths to archive files, oops
This commit is contained in:
parent
0f1b324cc4
commit
ffc6c8915a
@ -99,7 +99,10 @@ function pkgfs.component.close(handle)
|
||||
end
|
||||
|
||||
function pkgfs.add(fname,comp)
|
||||
local fname = "/"..fnormalize(os.getenv("PWD").."/"..fname)
|
||||
local f = fopen(fname,comp)
|
||||
if not fname then error("unable to open file") end
|
||||
print(fname)
|
||||
for name, read, fsize in mtar.iter(f) do
|
||||
findex[fnormalize(name)] = {fname,comp}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user