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 

cd dir list with fileXioDopen

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



Joined: 01 Jan 2005
Posts: 5

PostPosted: Mon Jan 03, 2005 12:05 pm    Post subject: cd dir list with fileXioDopen Reply with quote

Iʻve just started playing with PS2 development with the ps2sdk this weekend, and have had success while experimenting with libpad. Iʻve decided to move on to file manipulation, now that I feel reasonably comfortable with controller interaction, and have run into some trouble.
I wanted to do basic directory listings and file manipulation. However, I cannot seem to get fileXioDopen("cdrom0:\\"); to return. Here is the problematic code:
Code:

   cdInit(CDVD_INIT_INIT);
   cdSetMediaMode(CDVD_MEDIA_MODE_CD);
   d = fileXioDopen("cdrom0:\\");

I do not seem to get past fileXioDopen(); The cdInit() and cdSetMediaMode() are in there as suggested by a previous post in a different forum.
Am I doing something wrong here?
Having just started out, I am also a little confused by the relationship between fileXio and fio. Reading some posts here, they seem to overlap in functionality, but not 100%. Some devices work in one, and others do not?
Back to top
View user's profile Send private message
bbraun



Joined: 01 Jan 2005
Posts: 5

PostPosted: Mon Jan 03, 2005 1:52 pm    Post subject: Reply with quote

Ah, I just learned about loading the fileXio.irx file to get this functionality. Iʻm getting a little closer to it working now.
Back to top
View user's profile Send private message
bbraun



Joined: 01 Jan 2005
Posts: 5

PostPosted: Tue Jan 04, 2005 8:31 am    Post subject: Reply with quote

After talking to a few people on #ps2dev, it seems there is no filesystem driver for cdrom0 to use fioDopen() or fileXioDopen(). It was suggested I look at hiryuʻs libcdvd at http://ps2dev.org/kb.x?T=996 for doing cdrom directory lists.
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