lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello list :)

I'm trying to embed lua in a project where I can only
have a single 
file resource, containing a custom compressed virtual
file system.
I'd like to get require, do_file, ... functions
working on my file system,
so that each time i.e. a require is called I can get
it uncompressed
and loaded using my FS (otherwise I'd have to expand
my files into 
bigger files, which I'd prefer not)

is there any standar/elegant way to do so or it's just
a matter of
searching through the lua source and changing the
opens or fopens to
my custom open function, and so on? Can be done from
lua (for portability's 
sake) instead of modifying lua sources?

TIA :)
Kak



	
	
		
___________________________________________________________ 
Yahoo! Messenger - want a free and easy way to contact your friends online? http://uk.messenger.yahoo.com