Hello again!
Someone know why we can use the fio functions (fioDread, fioOpen, etc etc) whihout using the fioInit() finction!? Even thought those functions, called from EE, are called by RPC?
And from what module is required to use those functions (looks like they come from nowhere, lol )
Thanks : )
fioDread
The SDK is open source you know... If you just looked at the top of the functions you'd see:
ps2sdk/ee/kernel/src/fileio.c
The functions init the fio library themselves....
If I remember correctly the IRX which hosts the RPC server for these functions is called "FILEIO", but not 100% sure and can't check right now.
ps2sdk/ee/kernel/src/fileio.c
Code: Select all
int fioDread(int fd, fio_dirent_t *buf)
{
struct _fio_dread_arg arg;
int res;
if ((res = fioInit()) < 0)
return res;
If I remember correctly the IRX which hosts the RPC server for these functions is called "FILEIO", but not 100% sure and can't check right now.
Mmm...
Sorry, I looked the "fileio.c" file, including the fioDread() function, but didn't see this line before, sorry for that :(
I've looked into uLaunchelf code and it never loads a IRX called FILEIO, neither from EE memory or from "rom0:"; on the ps2sdk there is a IRX called fileXIO, but it doesn't seem to be needed for the fio functions. I was thinking if it's automatically loaded when the IOP is reset?
Sorry, I looked the "fileio.c" file, including the fioDread() function, but didn't see this line before, sorry for that :(
I've looked into uLaunchelf code and it never loads a IRX called FILEIO, neither from EE memory or from "rom0:"; on the ps2sdk there is a IRX called fileXIO, but it doesn't seem to be needed for the fio functions. I was thinking if it's automatically loaded when the IOP is reset?