| View previous topic :: View next topic |
| Author |
Message |
radad
Joined: 19 May 2004 Posts: 246 Location: Melbourne, Australia
|
Posted: Sun Jun 12, 2005 7:48 pm Post subject: simple dir list |
|
|
Hi I have got a simple dir list working with the fio* functions but when I try the same with the fileXio* functions it hangs on the first fileXio* call.
Is it true that the fio* functions are part of the ps2sdk kernel and therefore do not need an irx? Whereas the fileXio* need the fileXio.irx?
I am running this through ps2link which loads fileXio.irx so I don't need to load it in my elf, right?
Thanks. |
|
| Back to top |
|
 |
pixel
Joined: 30 Jan 2004 Posts: 791
|
Posted: Sun Jun 12, 2005 7:55 pm Post subject: |
|
|
fileXio.irx isn't loaded by ps2link, thus needs to be loaded by you. Otherwise, all your other assumptions are 'basically' right. _________________ pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department. |
|
| Back to top |
|
 |
radad
Joined: 19 May 2004 Posts: 246 Location: Melbourne, Australia
|
Posted: Sun Jun 12, 2005 8:36 pm Post subject: |
|
|
| Thanks for the quick response. I loaded fileXio.irx and it now attempts to do the dir listing. The mode and size values work correctly but the name entry is always empty. Btw this is using the fileXioDread function. |
|
| Back to top |
|
 |
radad
Joined: 19 May 2004 Posts: 246 Location: Melbourne, Australia
|
Posted: Sun Jun 12, 2005 9:07 pm Post subject: |
|
|
And when I use the fileXioGetdir function, the name is again empty but the properties are also all zero. The filesize seems to be correct though.
Any ideas as to what I am doing wrong? |
|
| Back to top |
|
 |
radad
Joined: 19 May 2004 Posts: 246 Location: Melbourne, Australia
|
Posted: Mon Jun 13, 2005 11:25 pm Post subject: |
|
|
I tried my dir program using mc0:/ as the path and it lists correctly (using the fio* functions) but when I try it with cdrom0:/ as the path I get this output (none of which is in my code):
dopen name cdrom0:/
nulldev calldopen fd = 2
nulldev callnulldev call
the fioDread returns 0 on the first call indicating the directory is empty. The cd is a PS1 cd, does that matter? I don't have a PS2 cd. |
|
| Back to top |
|
 |
|