forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sceIoOpen and the current folder

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Seddy



Joined: 11 Apr 2006
Posts: 8
Location: Germany

PostPosted: Thu Apr 27, 2006 12:03 am    Post subject: sceIoOpen and the current folder Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Thu Apr 27, 2006 12:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Seddy



Joined: 11 Apr 2006
Posts: 8
Location: Germany

PostPosted: Thu Apr 27, 2006 4:11 am    Post subject: Reply with quote

Works fine.
Thanks.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group