Loading a library

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Magriep
Posts: 8
Joined: Sun Aug 28, 2005 10:10 am

Loading a library

Post by Magriep »

Hi,

I would like to use the struct library (http://www.inf.puc-rio.br/~roberto/struct/) for lua, but I'm not quite sure how to go about implementing this. From a brief search of the lua forum, it seems like there isn't really a way to do something like this, so would I need to build it into lua itself (last resort)? Or is there some other way I can get the same functions. Any help would be greatly appreciated.
Oobles
Site Admin
Posts: 347
Joined: Sat Jan 17, 2004 9:49 am
Location: Melbourne, Australia
Contact:

Post by Oobles »

The loadlib function is not currently available for LUA. The only way you could support your library would be to build it directly into LUA. The other option is to setup LUA to allow loading modules and compile it as a module.

There is now enough information on creating and loading PRX files that adding loadable modules into LUA should not be too difficult. It just seems no-one has had the time to do it. It is still on my to do list, however, I don't know when I'll get to it.

David. aka Oobles.
www.livemedia.com.au/Blog
Magriep
Posts: 8
Joined: Sun Aug 28, 2005 10:10 am

Post by Magriep »

Ok, I am going to try and build it in LUA. I'm not sure exactly where it should be added (not familiar with the structure), so any help that would point me in the right direction would be greatly appreciated.
Post Reply