[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to require mod in archive package such as mpq etc?
- From: Jerome Vuarand <jerome.vuarand@...>
- Date: Thu, 18 Aug 2011 12:18:36 +0200
2011/8/14 l.jay Yuan <email@example.com>:
> How to require mod in archive package such as mpq etc?
> ll_require ?
You can add a searcher (see package.loaders in the reference manual)
that will look in your archives for the modules. There are searchers
examples on the wiki. For example in  replace io.open and file:read
by whatever API call you have to read the archive content. This is
implemented in Lua, but you can do the same in C.