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 

How can I find out the path of the homebrew

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



Joined: 21 Jan 2009
Posts: 5

PostPosted: Fri Jul 31, 2009 7:32 pm    Post subject: How can I find out the path of the homebrew Reply with quote

How can I find out the path of the homebrew that is launched?

I have a PRX in game.txt, when a game or a homebrew is launched the plugin finds out the path of the homebrew/game!

Is there any function for this?

Thanks in advance and sorry for my english^^
Back to top
View user's profile Send private message
slasher2661996



Joined: 22 Feb 2009
Posts: 91
Location: Melbourne Australia ZOMG

PostPosted: Fri Jul 31, 2009 7:35 pm    Post subject: Reply with quote

PRX's in game.txt don't launch when it is a homebrew app, only a UMD or iso/cso
Back to top
View user's profile Send private message
psPea



Joined: 01 Sep 2007
Posts: 64

PostPosted: Sat Aug 01, 2009 5:09 am    Post subject: Reply with quote

>PRX's in game.txt don't launch when it is a homebrew app, only a UMD or iso/cso

since when?

@op
try the current working directory.
or is it different for each module?
_________________
Click ME!
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Sat Aug 01, 2009 5:38 am    Post subject: Reply with quote

in libc getcwd() give you the current directory

getcwd(str,len of str)
return you the current directory in the string str the second parametre is usualy
sizeof(str)
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Berny



Joined: 21 Jan 2009
Posts: 5

PostPosted: Wed Aug 05, 2009 1:49 am    Post subject: Reply with quote

sauron_le_noir wrote:
in libc getcwd() give you the current directory

getcwd(str,len of str)
return you the current directory in the string str the second parametre is usualy
sizeof(str)

thx

But where can I find the function getcwd(), which file?

I searched for libc, but i only found libc.a
Back to top
View user's profile Send private message
Mon Ouïe



Joined: 05 Jul 2009
Posts: 36

PostPosted: Wed Aug 05, 2009 1:56 am    Post subject: Reply with quote

man getcwd ?
It's in unistd.h, and you already have its prototype.
Back to top
View user's profile Send private message
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Fri Aug 07, 2009 7:23 am    Post subject: Reply with quote

as said by mon ouie look at
where you put your sdk/pspdev/psp/include/sys/unistd.h
char _EXFUN(*getcwd, (char *__buf, size_t __size ));
it is a standard libc function.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Davee



Joined: 22 Jun 2009
Posts: 59

PostPosted: Sat Aug 08, 2009 4:33 am    Post subject: Reply with quote

er...

Code:
/**
 * Gets the filename of the executable to be launched after all modules of the api.
 *
 * @returns filename of executable or NULL if no executable found.
*/
char *sceKernelInitFileName();
Back to top
View user's profile Send private message
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Sat Aug 08, 2009 5:03 am    Post subject: Reply with quote

davee (y)
Back to top
View user's profile Send private message Send e-mail 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