cd dir list with fileXioDopen
Posted: Mon Jan 03, 2005 12:05 pm
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:
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?
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: Select all
cdInit(CDVD_INIT_INIT);
cdSetMediaMode(CDVD_MEDIA_MODE_CD);
d = fileXioDopen("cdrom0:\\");
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?