1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-22 03:54:20 -05:00

pkgfs now stores absolute paths to archive files, oops

This commit is contained in:
XeonSquared 2020-06-05 12:33:03 +10:00
parent 0f1b324cc4
commit ffc6c8915a

View File

@ -99,7 +99,10 @@ function pkgfs.component.close(handle)
end end
function pkgfs.add(fname,comp) function pkgfs.add(fname,comp)
local fname = "/"..fnormalize(os.getenv("PWD").."/"..fname)
local f = fopen(fname,comp) 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 for name, read, fsize in mtar.iter(f) do
findex[fnormalize(name)] = {fname,comp} findex[fnormalize(name)] = {fname,comp}
end end