On http://www.luaplayer.org you can get the new version 0.19. Oobles has changed the module interface a bit, now it is more Lua like with "loadlib" (see http://forums.ps2dev.org/viewtopic.php?t=4259 ). I've implemented a small demo how to manipulate images with a module, which can be used as a base for your own modules, e.g. for fast fade-in/fade-out of images, FFT transformation or other things, which needs a fast C implementation.
The changelog:
v0.19
==========
- directory detection bugfix [moonlight]
- Changed System.loadModule to loadlib to work. [Oobles]
the same as the traditional lua loadlib function.
- Made loadlib check if a module is already loaded before trying
to load. [Oobles]
- Removed getLuaState export. No longer required. [Oobles]
- Made debugOutput work in the same way as printf in bootstrap. [Oobles]
- Added loadlib.prx kernel module. required for module loading. [Oobles]
- Added a module sample for manipulating images [Shine]
Lua Player version 0.19
Moderator: cheriff
error when compiling the src.
hehe quick solution:
change
to
greets
lumo
Code: Select all
src/luasystem.cpp: In function 'int lua_usbDeactivate(lua_State*)':
/usr/local/pspdev/psp/sdk/include/pspusb.h:62: error: too many arguments to func
tion 'int sceUsbDeactivate()'
src/luasystem.cpp:226: error: at this point in file
make: *** [src/luasystem.o] Error 1
hehe quick solution:
change
Code: Select all
sceUsbDeactivate( 0 ); // what value here?
Code: Select all
sceUsbDeactivate(); // no value here
lumo
Better solution: update your PSPSDK toolchain :-)LuMo wrote:hehe quick solution:
changetoCode: Select all
sceUsbDeactivate( 0 ); // what value here?
Code: Select all
sceUsbDeactivate(); // no value here
- daurnimator
- Posts: 38
- Joined: Sun Dec 11, 2005 8:36 pm
- Location: melbourne, australia