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 

read a file in cd

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





PostPosted: Mon Mar 22, 2004 12:28 pm    Post subject: read a file in cd Reply with quote

I am studying the libcdvd.in its sample,it open the "system.cnf" use string "cdfs:system.cnf".buf I found that some cd can not be read like that.
when i open file with this path,it return -1.then I try "cdrom0:system.cnf",can I found some cd can be read.
In addition,when I open the "system.cnf" in a cd, I read it, but the string returned can not be read,it is not ascii.
Back to top
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Mon Mar 22, 2004 2:47 pm    Post subject: Reply with quote

What exactly is your question?
Back to top
View user's profile Send private message
lezy
Guest





PostPosted: Mon Mar 22, 2004 3:54 pm    Post subject: Reply with quote

I want to read the "system.cnf" in the cd.and i use
fioOpen("cdfs:/SYSTEM.CNF",O_RDONLY) to open the file,but in some cd,this way is not work,and return -1.
then I use fioOpen("cdrom0:/SYSTEM.CNF",O_RDONLY),the result is similar.
I want to know how I can open the file "system.cnf" in a CD.
Back to top
slayer



Joined: 17 Jun 2004
Posts: 1

PostPosted: Thu Jun 17, 2004 6:49 am    Post subject: Reply with quote

the system.cnf is opened by itself when the cd or dvd boots to give an elf path.
_________________
the ps2 is a powerful machine, if you know how to use it.
Back to top
View user's profile Send private message
ole



Joined: 08 May 2004
Posts: 92
Location: Czech Republic

PostPosted: Thu Jun 17, 2004 8:39 am    Post subject: Reply with quote

Did you try CDVD example program (the one that shows the CD-ROM directory) ? What this program shows you when the CD is inserted? Is file system.cnf visible? Are any other files visible? Can you open other files? Didy you inintialized cdvd ?
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