Maybe you can static int loader_wxLua (lua_State *L) { wxZipFilesystem search and load }
static const lua_CFunction loaders[] = {loader_preload, loader_Lua, loader_C, loader_Croot, loader_wxLua, NULL}; -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ray Gilbert Sent: Friday, 21 April 2006 08:46 To: wxlua-users@lists.sourceforge.net Subject: RE: [Wxlua-users] Add LUA_PATH to lua for require (Ray) For 'module' and 'require' look into lua loadlib.c Change findfile() to locate modules And look at loaders loader_Lua, loader_C etc Maybe you can setup some hook functions to redirect calls into wxLua - wxZipFilesystem Ray -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Labenski Sent: Friday, 21 April 2006 05:43 To: wxlua-users@lists.sourceforge.net Subject: [Wxlua-users] Add LUA_PATH to lua for require (Ray) I saw you added some functions to get the LUA_PATH. I was wondering if, after looking at some of the code, you have any ideas about how to get wxLuaFreeze to override "require" so that it can be forced to look into an attached zip file instead of the disk? Currently wxLuaFreeze just attaches a single lua program to the end of a C++ executable, but we can change that to attach a zip file with all the necessary modules/libs and use wxZipFilesystem (or whatever it's called) to browse it. We can't just override os.open and whatnot since the lua program may actually want to read from the disk. Thanks, John Labenski ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642 _______________________________________________ Wxlua-users mailing list Wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642 _______________________________________________ Wxlua-users mailing list Wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Wxlua-users mailing list Wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users