How to load an homebrew app from another?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
dark_tee
Posts: 4
Joined: Sun Feb 24, 2008 11:41 pm

How to load an homebrew app from another?

Post by dark_tee »

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.. ;)
coolspace
Posts: 12
Joined: Sat Nov 10, 2007 5:45 pm

Post by coolspace »

sceKernelLoadExec
dark_tee
Posts: 4
Joined: Sun Feb 24, 2008 11:41 pm

ty

Post by dark_tee »

thank you..
do I just write sceKernelLoadExec("myfilename") ?
or are there other code needed?
in wich header file is it included?
( i got PSPSDK )
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Just do a search in this forum. It's been covered many times before. Always search FIRST, then ask questions.
JumpR
Posts: 25
Joined: Sun Feb 10, 2008 1:07 am

Post by JumpR »

Untested, but should work.

Code: Select all

int ExecEboot(char *target){
	
	struct SceKernelLoadExecVSHParam param; 
	
	memset(&param, 0, sizeof(param)); 
	param.key = "game";
	param.size = sizeof(param);
	param.args = strlen(target)+1;
	param.argp = target; 
	
	return sctrlKernelLoadExecVSHMs2(target, &param);
}
Requires the M33 SDK - systemctrl.h
Last edited by JumpR on Wed Mar 05, 2008 5:40 am, edited 1 time in total.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

JumpR wrote:Untested, but should work.

Code: Select all

int ExecEboot(char *file){
	
	struct SceKernelLoadExecVSHParam param; 
	
	memset(&param, 0, sizeof(param)); 
	param.key = "game";
	param.size = sizeof(param);
	param.args = strlen(target)+1;
	param.argp = target; 
	
	return sctrlKernelLoadExecVSHMs2(target, &param);
}
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.
Image
Upgrade your PSP
JumpR
Posts: 25
Joined: Sun Feb 10, 2008 1:07 am

Post by JumpR »

Pirata Nervo wrote:
JumpR wrote:Untested, but should work.

Code: Select all

int ExecEboot(char *file){
	
	struct SceKernelLoadExecVSHParam param; 
	
	memset(&param, 0, sizeof(param)); 
	param.key = "game";
	param.size = sizeof(param);
	param.args = strlen(target)+1;
	param.argp = target; 
	
	return sctrlKernelLoadExecVSHMs2(target, &param);
}
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.
Post Reply