forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

simple dir list

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
radad



Joined: 19 May 2004
Posts: 246
Location: Melbourne, Australia

PostPosted: Sun Jun 12, 2005 7:48 pm    Post subject: simple dir list Reply with quote

Hi I have got a simple dir list working with the fio* functions but when I try the same with the fileXio* functions it hangs on the first fileXio* call.

Is it true that the fio* functions are part of the ps2sdk kernel and therefore do not need an irx? Whereas the fileXio* need the fileXio.irx?

I am running this through ps2link which loads fileXio.irx so I don't need to load it in my elf, right?

Thanks.
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sun Jun 12, 2005 7:55 pm    Post subject: Reply with quote

fileXio.irx isn't loaded by ps2link, thus needs to be loaded by you. Otherwise, all your other assumptions are 'basically' right.
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
radad



Joined: 19 May 2004
Posts: 246
Location: Melbourne, Australia

PostPosted: Sun Jun 12, 2005 8:36 pm    Post subject: Reply with quote

Thanks for the quick response. I loaded fileXio.irx and it now attempts to do the dir listing. The mode and size values work correctly but the name entry is always empty. Btw this is using the fileXioDread function.
Back to top
View user's profile Send private message
radad



Joined: 19 May 2004
Posts: 246
Location: Melbourne, Australia

PostPosted: Sun Jun 12, 2005 9:07 pm    Post subject: Reply with quote

And when I use the fileXioGetdir function, the name is again empty but the properties are also all zero. The filesize seems to be correct though.
Any ideas as to what I am doing wrong?
Back to top
View user's profile Send private message
radad



Joined: 19 May 2004
Posts: 246
Location: Melbourne, Australia

PostPosted: Mon Jun 13, 2005 11:25 pm    Post subject: Reply with quote

I tried my dir program using mc0:/ as the path and it lists correctly (using the fio* functions) but when I try it with cdrom0:/ as the path I get this output (none of which is in my code):

dopen name cdrom0:/
nulldev calldopen fd = 2
nulldev callnulldev call

the fioDread returns 0 on the first call indicating the directory is empty. The cd is a PS1 cd, does that matter? I don't have a PS2 cd.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group