| View previous topic :: View next topic |
| Author |
Message |
dark_tee
Joined: 24 Feb 2008 Posts: 4
|
Posted: Thu Feb 28, 2008 6:34 am Post subject: How to load an homebrew app from another? |
|
|
I got an question:
how can I run an app from my homebrew programm?
I know how to get the file located but dont know how i run it..
plz answer..
I hope that my English is not too bad.. ;) |
|
| Back to top |
|
 |
coolspace
Joined: 10 Nov 2007 Posts: 12
|
Posted: Thu Feb 28, 2008 9:56 pm Post subject: |
|
|
| sceKernelLoadExec |
|
| Back to top |
|
 |
dark_tee
Joined: 24 Feb 2008 Posts: 4
|
Posted: Fri Feb 29, 2008 3:35 am Post subject: ty |
|
|
thank you..
do I just write sceKernelLoadExec("myfilename") ?
or are there other code needed?
in wich header file is it included?
( i got PSPSDK ) |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Fri Feb 29, 2008 8:15 am Post subject: |
|
|
| Just do a search in this forum. It's been covered many times before. Always search FIRST, then ask questions. |
|
| Back to top |
|
 |
JumpR
Joined: 10 Feb 2008 Posts: 25
|
Posted: Tue Mar 04, 2008 5:49 pm Post subject: |
|
|
Untested, but should work.
| Code: | int ExecEboot(char *target){
struct SceKernelLoadExecVSHParam param;
memset(¶m, 0, sizeof(param));
param.key = "game";
param.size = sizeof(param);
param.args = strlen(target)+1;
param.argp = target;
return sctrlKernelLoadExecVSHMs2(target, ¶m);
} |
Requires the M33 SDK - systemctrl.h
Last edited by JumpR on Wed Mar 05, 2008 5:40 am; edited 1 time in total |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Tue Mar 04, 2008 8:30 pm Post subject: |
|
|
| JumpR wrote: | Untested, but should work.
| Code: | int ExecEboot(char *file){
struct SceKernelLoadExecVSHParam param;
memset(¶m, 0, sizeof(param));
param.key = "game";
param.size = sizeof(param);
param.args = strlen(target)+1;
param.argp = target;
return sctrlKernelLoadExecVSHMs2(target, ¶m);
} |
Requires the M33 SDK - systemctrl.h |
You have not declared the variable target there.
I think you wanted to put char* target instead of char* file. _________________
Upgrade your PSP |
|
| Back to top |
|
 |
JumpR
Joined: 10 Feb 2008 Posts: 25
|
Posted: Wed Mar 05, 2008 5:41 am Post subject: |
|
|
| Pirata Nervo wrote: | | JumpR wrote: | Untested, but should work.
| Code: | int ExecEboot(char *file){
struct SceKernelLoadExecVSHParam param;
memset(¶m, 0, sizeof(param));
param.key = "game";
param.size = sizeof(param);
param.args = strlen(target)+1;
param.argp = target;
return sctrlKernelLoadExecVSHMs2(target, ¶m);
} |
Requires the M33 SDK - systemctrl.h |
You have not declared the variable target there.
I think you wanted to put char* target instead of char* file. |
Ah, yes - fixed. Small mistake made as I wrote out of my head =P Thanks for reminding me. |
|
| Back to top |
|
 |
|