| View previous topic :: View next topic |
| Author |
Message |
Seddy
Joined: 11 Apr 2006 Posts: 8 Location: Germany
|
Posted: Thu Apr 27, 2006 12:03 am Post subject: sceIoOpen and the current folder |
|
|
I have a liitle problem with sceIoOpen:
If I wan't to open a file in the folder of my game,
I type sceIoOpen"./filename.ext",PSP_O_RDONLY,0777);
what works well, but if I want to open a file for writing:
sceIoOpen("./filename.ext",PSP_O_WRONLY|PSP_O_CREAT,0777);
the MS-led isn't blinking and the file will not be created or modified.
What am I doing wrong? |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Thu Apr 27, 2006 12:37 am Post subject: |
|
|
| The sce* functions seem a bit inconsistent with regard to the working directory. That's why all of the newlib functions (fopen etc) manage the working directory themselves, and always pass full paths to sce*. You might consider just using them. |
|
| Back to top |
|
 |
Seddy
Joined: 11 Apr 2006 Posts: 8 Location: Germany
|
Posted: Thu Apr 27, 2006 4:11 am Post subject: |
|
|
Works fine.
Thanks. |
|
| Back to top |
|
 |
|