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 

To create an homebrew that load and starts another homebrew

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



Joined: 12 Jul 2006
Posts: 160

PostPosted: Mon Oct 29, 2007 7:44 pm    Post subject: To create an homebrew that load and starts another homebrew Reply with quote

Is it possible to create an homebrew that load and starts another homebrew ?

A solution that would be useful for auto-updating software....

Is it possible ? How ?
Back to top
View user's profile Send private message
mypspdev



Joined: 11 Jul 2007
Posts: 178

PostPosted: Mon Oct 29, 2007 9:10 pm    Post subject: Reply with quote

int sceKernelLoadExec (const char *file, struct SceKernelLoadExecParam *param)
?
Back to top
View user's profile Send private message
Anti-QJ



Joined: 03 May 2007
Posts: 16

PostPosted: Tue Oct 30, 2007 9:23 am    Post subject: Reply with quote

For Auto-Updating on my programs I have it connect to a WLAN access point on startup then check a text file on my server that has the latest version. Then I do a if currentVersion > hostedVersion then download new version and replace the files needed.
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Tue Oct 30, 2007 11:57 am    Post subject: Reply with quote

A further development of that idea might also delete itself and start the
new version as well.
When I had a play with LoadExec, I think it only wanted to load elf files.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
Cpasjuste



Joined: 29 May 2005
Posts: 214

PostPosted: Wed Oct 31, 2007 1:15 am    Post subject: Reply with quote

Yep i'm not able to load eboot with sceKernelLoadExec anymore but with the m33 sdk function "sctrlKernelLoadExecVSHMs2" there is no problem. Art is right, if you find a new version on the server, just overwrite your current eboot on psp (no problems since its loaded in ram) then exec it :

Code:

void 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;

   sctrlKernelLoadExecVSHMs2(target, &param);   

}
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Wed Oct 31, 2007 4:01 am    Post subject: Reply with quote

Yeah, in 2.XX+, the original sceKernelLoadExec is now only able to execute something that is inside in an disc.

Moreover, it cannot execute eboot.bin, games have to execute boot.bin to do it, but the curious thing is that since some firmware (2.70 i think), the firmware really executes eboot.bin when the program passes the boot.bin string in the original loadexec, but it will reject it if games explicitily indicate eboot.bin. Curious and stupid sce things :)
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