| View previous topic :: View next topic |
| Author |
Message |
Berny
Joined: 21 Jan 2009 Posts: 5
|
Posted: Fri Jul 31, 2009 7:32 pm Post subject: How can I find out the path of the homebrew |
|
|
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 |
|
 |
slasher2661996
Joined: 22 Feb 2009 Posts: 91 Location: Melbourne Australia ZOMG
|
Posted: Fri Jul 31, 2009 7:35 pm Post subject: |
|
|
| PRX's in game.txt don't launch when it is a homebrew app, only a UMD or iso/cso |
|
| Back to top |
|
 |
psPea
Joined: 01 Sep 2007 Posts: 64
|
Posted: Sat Aug 01, 2009 5:09 am Post subject: |
|
|
>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 |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 229
|
Posted: Sat Aug 01, 2009 5:38 am Post subject: |
|
|
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 |
|
 |
Berny
Joined: 21 Jan 2009 Posts: 5
|
Posted: Wed Aug 05, 2009 1:49 am Post subject: |
|
|
| 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 |
|
 |
Mon Ouïe
Joined: 05 Jul 2009 Posts: 36
|
Posted: Wed Aug 05, 2009 1:56 am Post subject: |
|
|
man getcwd ?
It's in unistd.h, and you already have its prototype. |
|
| Back to top |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 229
|
Posted: Fri Aug 07, 2009 7:23 am Post subject: |
|
|
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 |
|
 |
Davee
Joined: 22 Jun 2009 Posts: 59
|
Posted: Sat Aug 08, 2009 4:33 am Post subject: |
|
|
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 |
|
 |
sauron_le_noir
Joined: 05 Jul 2008 Posts: 229
|
Posted: Sat Aug 08, 2009 5:03 am Post subject: |
|
|
| davee (y) |
|
| Back to top |
|
 |
|