Discuss the development of new homebrew software, tools and libraries.
Moderators: cheriff , TyRaNiD
Stewie87
Posts: 34 Joined: Thu Apr 03, 2008 8:16 am
Post
by Stewie87 » Mon Jun 30, 2008 2:18 pm
I made a simple VSH plugin that launchs a eboot.pbp.
But now I have to solve a big issue: every time I exit from that homebrew, PSP does not return to dashboard "normally" (like when you exit from an eboot or from an UMD) but on the contrary PSP seems to be "resetted", because it shows the intro with the logo SCEE...
I use this code to start my homebrew:
Code: Select all
struct SceKernelLoadExecVSHParam param;
int apitype = 0;
char *program = NULL;
char *mode = NULL;
apitype = 0x141;
program = "ms0:/PSP/GAME/BOOT/EBOOT.PBP";
mode = "game";
memset(¶m, 0, sizeof(param));
param.size = sizeof(param);
param.args = strlen(program)+1;
param.argp = program;
param.key = mode;
param.vshmain_args_size = 0;
param.vshmain_args = NULL;
sctrlKernelLoadExecVSHWithApitype(apitype, program, ¶m);
What i have to add to avoid that PSP shows SCEE logo every time I exit from that homebrew?
Please help me :(
Pirata Nervo
Posts: 409 Joined: Tue Oct 09, 2007 4:22 am
Post
by Pirata Nervo » Mon Jun 30, 2008 7:34 pm
This is "how to don't show the sony logo":
http://forums.ps2dev.org/viewtopic.php? ... logo#42242
But it's still a reboot and not a exit.
why are you using this function:
sctrlKernelLoadExecVSHWithApitype(apitype, program, ¶m);
that may be the problem.
I only use this:
Code: Select all
memset(¶m, 0, sizeof(param));
param.size = sizeof(param);
param.args = strlen(program)+1;
param.argp = program;
param.key = mode;
param.vshmain_args_size = 0;
param.vshmain_args = NULL;
when I use the sceKernelLoadExecVSHMs2 or sctrl*
try this instead:
Code: Select all
memset(¶m, 0, sizeof(param));
param.size = sizeof(param);
param.args = strlen(program)+1;
param.argp = program;
param.key = mode;
Upgrade your
PSP
Torch
Posts: 825 Joined: Wed May 28, 2008 2:50 am
Post
by Torch » Tue Jul 01, 2008 2:52 am
You have to remove the lines
param.vshmain_args_size = 0;
param.vshmain_args = NULL;
Those are the arguments that the LAUNCHED EBOOT will pass to the VSH when you quit the LAUNCHED EBOOT.
0 and NULL are the same parameters the VSH receives on a system restart, hence it shows the SCE logo.