![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on System.listCurrentDirecto ry() help (lua) within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Ok I'm tryin to get this thing to work, I want a little script that lists everything in the current ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
Ok I'm tryin to get this thing to work, I want a little script that lists everything in the current directory and prints it to the screen but does nothing else. I also want to be able to understand it. Whoever helps me out may or may not recieve some P01/\/T$.
|
|
|
|
|
|
#2 |
![]() ![]() Developer
|
This is what I used, because the example in the wiki is not very clear:
Code:
filelist=System.listDirectory()
numfiles=table.getn(filelist)
for k=1,numfiles do
screen:print(10,10*k,filelist[k].name,Color.new(255,255,255))
end
EDIT: Also, you shouldn't run System.listDirectory() in a while loop. |
|
|
|
|
|
#3 |
![]() |
I was talkin to bronx on msn and lookin at a filebrowser source but i couldnt quite get it. I understand the directory commands and stuff, i just was having troubles getting it to run correctly. This works though. Thanks lmelior!
|
|
|
|
|
|
#4 | |
![]() ![]() .info
|
Quote:
You helped me make browsR
__________________
|
|
|
|
|
![]() |
| Tags |
| lua , systemlistcurrentdirecto |
| Thread Tools | |
|
|