On the official Lua homepage I found some libraries that make zip-file handling easier (http://www.keplerproject.org/luazip/).(http://mega.ist.utl.pt/~tngd/lua/) These libraries where made for Lua 5.0. I was wondering if I could use them with lua player.
I'm trying to make an unzip app for the psp but I haven't got a clue on how to decompress the files, so if I could use these libraries...
Does anyone know if I can use the libs or an other method on unzipping files?
lua 5 libraries in lua player?
Moderators: Shine, Insert_witty_name
-
- Posts: 123
- Joined: Mon Oct 03, 2005 4:25 am
- Location: Netherlands
If the library is written in ANSI C, it should be possible to build it for PSP and then to build a new Lua Player, which linked the library and added it to the Lua Player, but I don't see a reason to include a general unzipper, but the source is BSD, you are free to create your own Lua Player :-)
But Laurens is working on PhysicsFS, which will allow to pack all Lua scripts, images and sounds of a game in one file for easier distribution and faster loading (a PhysicsFS file is just a zip file, with some logic on the Lua Player side, to make it work like an directory).
But Laurens is working on PhysicsFS, which will allow to pack all Lua scripts, images and sounds of a game in one file for easier distribution and faster loading (a PhysicsFS file is just a zip file, with some logic on the Lua Player side, to make it work like an directory).
-
- Posts: 123
- Joined: Mon Oct 03, 2005 4:25 am
- Location: Netherlands
why I want to decompress zip
I want to decompress zip because of the webbrowser feature of the psp. If you download a zip file with your psp, it's quite handy to play the contents (images, music) without being dependant of a computer. It would also enable websites like pspdrive.com (works great) to distribute magazines (a series of images with text in a zip file) directly to a psp.
However, compiling my own luaplayer looks quite complicated to me. I will read the tutorial on the WIKI tough. I doubt if luaplayer has enough file read/write capabilities to make a unzip lua script. E.G. if I would like to search a given file for the position of text "{i}" ({i} might be a flag that indicates where data should be duplicated for decompression) for example, how would I do that?
However, compiling my own luaplayer looks quite complicated to me. I will read the tutorial on the WIKI tough. I doubt if luaplayer has enough file read/write capabilities to make a unzip lua script. E.G. if I would like to search a given file for the position of text "{i}" ({i} might be a flag that indicates where data should be duplicated for decompression) for example, how would I do that?