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 

Current directory without main args?

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



Joined: 30 Jun 2005
Posts: 66

PostPosted: Sat Jul 30, 2005 5:40 pm    Post subject: Current directory without main args? Reply with quote

Is there a way to find the current directory at startup without using the main arguments, maybe retrieving the full path of the loaded file?

LiQuiD8d
Back to top
View user's profile Send private message AIM Address
ector



Joined: 12 May 2005
Posts: 195

PostPosted: Sat Jul 30, 2005 7:19 pm    Post subject: Reply with quote

Poke around in crt0 or .. use the main arguments? Why not?
_________________
http://www.dtek.chalmers.se/~tronic/PSPTexTool.zip Free texture converter for PSP with source. More to come.
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sat Jul 30, 2005 7:59 pm    Post subject: Reply with quote

BTW: with the latest PSPSDK from svn the current directory is set to the one where the EBOOT.PBP is in at startup, so you can just write 'fopen("file", "r")' and it works, if "file" is in the same directory where EBOOT.PBP is.
Back to top
View user's profile Send private message
liquid8d



Joined: 30 Jun 2005
Posts: 66

PostPosted: Sat Jul 30, 2005 8:25 pm    Post subject: Reply with quote

mainly the only reason is i am using the launcher program for testing, and currently it doesn't work when arguments are set... good to know you can open a file with no path in the current directory though.. thanks.

LiQuiD8d
Back to top
View user's profile Send private message AIM Address
cooleyandy



Joined: 02 Jul 2005
Posts: 41

PostPosted: Mon Aug 01, 2005 9:22 am    Post subject: Reply with quote

ahhh, great. sceIoOpen works in current directory now.
Back to top
View user's profile Send private message
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