| View previous topic :: View next topic |
| Author |
Message |
lezy Guest
|
Posted: Mon Mar 22, 2004 12:28 pm Post subject: read a file in cd |
|
|
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
|
Posted: Mon Mar 22, 2004 2:47 pm Post subject: |
|
|
| What exactly is your question? |
|
| Back to top |
|
 |
lezy Guest
|
Posted: Mon Mar 22, 2004 3:54 pm Post subject: |
|
|
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
|
Posted: Thu Jun 17, 2004 6:49 am Post subject: |
|
|
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 |
|
 |
ole
Joined: 08 May 2004 Posts: 92 Location: Czech Republic
|
Posted: Thu Jun 17, 2004 8:39 am Post subject: |
|
|
| 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 |
|
 |
|