System.listDirectory() in luaplayer for windows

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

Moderators: Shine, Insert_witty_name

Post Reply
cancan
Posts: 30
Joined: Fri Nov 18, 2005 9:15 pm
Location: France
Contact:

System.listDirectory() in luaplayer for windows

Post by cancan »

Hi,

Need some help.
I can't get the System.listDirectory() to be working when using the luaplayer for windows (I have version 0.13 but was also not working in 0.12)
Do I have to set up some parameters?
Would be nice to have it otherwise I will have to make all the debugging on the PSP.

Thanks.
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Re: System.listDirectory() in luaplayer for windows

Post by Shine »

cancan wrote: I can't get the System.listDirectory() to be working when using the luaplayer for windows (I have version 0.13 but was also not working in 0.12)
Do I have to set up some parameters?
Would be nice to have it otherwise I will have to make all the debugging on the PSP.
Sorry, currently it is not implemented. Perhaps the new PSPSDK supports the standard Unix directory listing functions, then it would be a good idea to change luasystem.cpp to use this, instead of the PSP functions and it should work automaticly for the Windows version, too. If not, someone has to improve emulator.cpp and implement wrappers for sceDOpen etc.

I have no time until next weekend, but if someone send me a patch, I'll release a new version earlier (and with the new IRDA support, which is already in SVN).
cancan
Posts: 30
Joined: Fri Nov 18, 2005 9:15 pm
Location: France
Contact:

Post by cancan »

Thank you for the quick reply.
sweetlilmre
Posts: 27
Joined: Sat Oct 01, 2005 7:24 pm

Post by sweetlilmre »

This was on my list of things to do.
Wife permitting ( :) ) I'll try and fix it and checkin by Friday
-(e)
cancan
Posts: 30
Joined: Fri Nov 18, 2005 9:15 pm
Location: France
Contact:

Post by cancan »

Sounds good.
Thank you (and your wife for giving you the time to do it ;o) )
sweetlilmre
Posts: 27
Joined: Sat Oct 01, 2005 7:24 pm

Post by sweetlilmre »

Done, see the SVN Update post I made.
-(e)
cancan
Posts: 30
Joined: Fri Nov 18, 2005 9:15 pm
Location: France
Contact:

Post by cancan »

Cool, thanks
Will try asap

Oups, must wait until the compile object is available.
Post Reply