@ -3,6 +3,7 @@ local w, lz16 = pcall(require, "liblz16")
ifnotwthenlz16=nilend
pkgfs={}
pkgfs.files={}
localfindex={}
localhandles={}
localhc=0
@ -98,17 +99,35 @@ function pkgfs.component.close(handle)
returntrue
end
functionpkgfs.add(fname,comp)-- string boolean -- -- Add a package as specified in *fname* to the pkgfs component. If *comp* is true, read it as a LZ16-compressed package.
functionpkgfs.add(fname,comp)-- string boolean -- boolean -- Add a package as specified in *fname* to the pkgfs component. If *comp* is true, read it as a LZ16-compressed package.
pkgfs.files[#pkgfs.files+1]={fname,comp}
returnindex()
end
functionpkgfs.remove(fname)-- string -- boolean -- Removes the package specified by *fname* from the pkgfs index.