fileXioOpen() issue
Posted: Wed Aug 26, 2009 1:04 am
Hello again!
It could sound like an idiot question, but...
ON this part of my code (i've written just to test something)
getPath returns a pointer to a path selected by the user, and for testing I select: "mass:/boot", and after strcat it becomes "mass:/boot/just_testing.txt"
on fileXioOpen, instead of opening the file, the PS2 just freezes...
I've loaded all of the required modules, but nothing : (
Thanks for any help!
[edit]
Oh, I forgot to load fileXio.irx, I thought iomanX had a rpc server in it, but it doesn't. But... now anyone could answer me this:
I load XSIO2MAN, XPADMAN, XMCMAN, usbd.irx, usbdhfsd.irx, iomanx.irx, and then mcdump.irx (from the HDProject), and when I call the function that requires a path, I pass the "dump_path" () returned by getPath(), and... the PS2 freezes (probably when trying to create the file, I've modified the mcdump irx so that I could test when it freezes)... By the way, the path that I must pass to iomanX' functions (open(), etc...) must be diferent from those to the ioman? (I mean, things like '/' or '\', etc...)
It could sound like an idiot question, but...
ON this part of my code (i've written just to test something)
Code: Select all
dump_path = getPath(&cnf1);
strcat(dump_path, "/just_testing.txt");
fileXioInit();
fd = fileXioOpen(dump_path, O_WRONLY|O_CREAT|O_TRUNC, 0666);
fileXioClose(fd);
on fileXioOpen, instead of opening the file, the PS2 just freezes...
I've loaded all of the required modules, but nothing : (
Thanks for any help!
[edit]
Oh, I forgot to load fileXio.irx, I thought iomanX had a rpc server in it, but it doesn't. But... now anyone could answer me this:
I load XSIO2MAN, XPADMAN, XMCMAN, usbd.irx, usbdhfsd.irx, iomanx.irx, and then mcdump.irx (from the HDProject), and when I call the function that requires a path, I pass the "dump_path" () returned by getPath(), and... the PS2 freezes (probably when trying to create the file, I've modified the mcdump irx so that I could test when it freezes)... By the way, the path that I must pass to iomanX' functions (open(), etc...) must be diferent from those to the ioman? (I mean, things like '/' or '\', etc...)