Page 1 of 2

sceKernelLoadExec on HBL/VHBL

Posted: Wed Apr 25, 2012 1:05 pm
by Rinnegatamante
Hi at all, i have a short question for HBL devs. If i want to start another executable with an homebrew which has been loaded with HBL/VHBL i have to use normal sceKernelLoadExec or i have to import some functions?

Re: sceKernelLoadExec on HBL/VHBL

Posted: Wed Apr 25, 2012 2:30 pm
by JJS
What you want to do is not possible with HBL. The firmware's version of sceKernelLoadExec will obviously not work to load a homebrew, otherwise most of the HBL code would be pointless ;). HBL itself does not override that function either, so you are out of luck.

The only way to start another homebrew is if your homebrew replaces the HBL menu, but this may not be what you want.

Re: sceKernelLoadExec on HBL/VHBL

Posted: Wed Apr 25, 2012 2:46 pm
by m0skit0
You might want to add that function to HBL ;)

Re: sceKernelLoadExec on HBL/VHBL

Posted: Wed Apr 25, 2012 2:58 pm
by JJS
Well, the new menu api would essentially allow this. If we were ok with breaking backward compatibility with older menus, the new api could be quickly finished. I guess today only wmenu is used anyway so it would not be as big of a deal as in the pre-VHBL days.

Re: sceKernelLoadExec on HBL/VHBL

Posted: Wed Apr 25, 2012 3:10 pm
by m0skit0
You have my support for the menu API (from day 0) and anyways HBL is still Beta :lol:

Re: sceKernelLoadExec on HBL/VHBL

Posted: Wed Apr 25, 2012 3:39 pm
by Rinnegatamante
So if i want to start another homebrew like wMenu do, i can't?

Re: sceKernelLoadExec on HBL/VHBL

Posted: Wed Apr 25, 2012 3:46 pm
by m0skit0
From where?

Re: sceKernelLoadExec on HBL/VHBL

Posted: Wed Apr 25, 2012 3:48 pm
by Rinnegatamante
for example from: PSP/GAME/HOMEBREWNAME/SUBDR/EBOOT.PBP

Re: sceKernelLoadExec on HBL/VHBL

Posted: Wed Apr 25, 2012 3:54 pm
by m0skit0
Sorry, I meant from what code :) From HBL? From your homebrew?

EDIT: if it's from your homebrew, you can't as JJS already said. At least until the menu API is finished. If you want to write your own API into HBL to do so, feel free to discuss this on the HBL dev forum.

Re: sceKernelLoadExec on HBL/VHBL

Posted: Wed Apr 25, 2012 4:21 pm
by NaNnI
I saw the function "run_eboot" in eloader.c. If we use this function?