forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to load an homebrew app from another?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
dark_tee



Joined: 24 Feb 2008
Posts: 4

PostPosted: Thu Feb 28, 2008 6:34 am    Post subject: How to load an homebrew app from another? Reply with quote

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
View user's profile Send private message
coolspace



Joined: 10 Nov 2007
Posts: 12

PostPosted: Thu Feb 28, 2008 9:56 pm    Post subject: Reply with quote

sceKernelLoadExec
Back to top
View user's profile Send private message
dark_tee



Joined: 24 Feb 2008
Posts: 4

PostPosted: Fri Feb 29, 2008 3:35 am    Post subject: ty Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Feb 29, 2008 8:15 am    Post subject: Reply with quote

Just do a search in this forum. It's been covered many times before. Always search FIRST, then ask questions.
Back to top
View user's profile Send private message AIM Address
JumpR



Joined: 10 Feb 2008
Posts: 25

PostPosted: Tue Mar 04, 2008 5:49 pm    Post subject: Reply with quote

Untested, but should work.
Code:
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
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Tue Mar 04, 2008 8:30 pm    Post subject: Reply with quote

JumpR wrote:
Untested, but should work.
Code:
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.
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
JumpR



Joined: 10 Feb 2008
Posts: 25

PostPosted: Wed Mar 05, 2008 5:41 am    Post subject: Reply with quote

Pirata Nervo wrote:
JumpR wrote:
Untested, but should work.
Code:
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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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