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.. ;)
How to load an homebrew app from another?
Untested, but should work.
Requires the M33 SDK - systemctrl.h
Code: Select all
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);
}
Last edited by JumpR on Wed Mar 05, 2008 5:40 am, edited 1 time in total.
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am
You have not declared the variable target there.JumpR wrote:Untested, but should work.Requires the M33 SDK - systemctrl.hCode: Select all
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); }
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.Pirata Nervo wrote:You have not declared the variable target there.JumpR wrote:Untested, but should work.Requires the M33 SDK - systemctrl.hCode: Select all
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); }
I think you wanted to put char* target instead of char* file.