 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
ab5000
Joined: 06 May 2008 Posts: 74
|
Posted: Thu Aug 20, 2009 5:06 am Post subject: kuKernelInitFileName |
|
|
Hi.
Today I was trying to get the current homebrew path from inside the homebrew (I know I can use argp[0] but for style reasons i prefer not to) using kuKernelInitFileName. That's how I call it:
| Code: | char str[50];
int ret;
ret = kuKernelInitFileName(str);
printf("%d %s", ret, str); |
but the output is this:
why is this happening? I'm doing something wrong?
Thanks,
ab5000. _________________
| Code: | %:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%> |
|
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Thu Aug 20, 2009 5:43 am Post subject: |
|
|
| It needs to be called immedately once your module is loaded as the path gets erased soon. Do it from module_start() or in the beginning of the main thread. |
|
| Back to top |
|
 |
ab5000
Joined: 06 May 2008 Posts: 74
|
Posted: Thu Aug 20, 2009 5:54 am Post subject: |
|
|
| Torch wrote: | | It needs to be called immedately once your module is loaded as the path gets erased soon. Do it from module_start() or in the beginning of the main thread. |
Thanks! :)
I'll try ASAP. _________________
| Code: | %:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%> |
|
|
| Back to top |
|
 |
|
|
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
|