read a file in cd

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
lezy

read a file in cd

Post by lezy »

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.
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

What exactly is your question?
lezy

Post by lezy »

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.
slayer
Posts: 1
Joined: Thu Jun 17, 2004 6:44 am

Post by slayer »

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.
ole
Posts: 92
Joined: Sat May 08, 2004 11:14 pm
Location: Czech Republic

Post by ole »

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 ?
Post Reply