I already made some simple hello worlds, but I decided to take a look in the HBL source code, just to see if I can understand how it works.
Then I tried to modify it a bit, cause I always thought it would be nice to load your homebrews quicker, and to switch between menus.
I made a very simple script to create shortcuts before loading the standard wMenu. For example:
-If you press [O] while loading HBL, it will bring you to Nymphaea's SimpleMenu.
-If you press [X] while loading HBL, it brings you to Mr.X's Xenu.
-If you do nothing, it will bring you to the standard wMenu.
Done that, I decided to just copy-paste the code to use for other homebrew. For example:
-If you press [LEFT TRIGGER] while loading HBL, gbaKAI will pop up immediately.
-If you press [RIGHT TRIGGER] while loading HBL, snes9xTYL will launch directly.
And so on..
You can choose which homebrew will be loaded by replacing in the corresponding folders (up,down,left,right,cross,circle...); but I was thinking to add an option to set the path of the shortcuts in the HBL_CONFIG text file as well. But I guess that's way too complicated for me, I'm learning the basics.
So, yea. It works, but it isn't that good or complex yet. Anyways, I thought to share it with you guys if someone thinks it's useful.
In eloader.c :
Just replace
Code: Select all
run_eboot(g->menupath, 1);With
Code: Select all
// Shortcuts
while (1)
{
sceCtrlReadBufferPositive(&pad, 1);
if(pad.Buttons & PSP_CTRL_CROSS)
{
run_eboot("ms0:/hbl/shortcuts/cross/EBOOT.PBP", 1);
break;
}
if(pad.Buttons & PSP_CTRL_CIRCLE)
{
run_eboot("ms0:/hbl/shortcuts/circle/EBOOT.PBP", 1);
break;
}
if(pad.Buttons & PSP_CTRL_TRIANGLE)
{
run_eboot("ms0:/hbl/shortcuts/triangle/EBOOT.PBP", 1);
break;
}
if(pad.Buttons & PSP_CTRL_SQUARE)
{
run_eboot("ms0:/hbl/shortcuts/square/EBOOT.PBP", 1);
break;
}
if(pad.Buttons & PSP_CTRL_LTRIGGER)
{
run_eboot("ms0:/hbl/shortcuts/left-trigger/EBOOT.PBP", 1);
break;
}
if(pad.Buttons & PSP_CTRL_RTRIGGER)
{
run_eboot("ms0:/hbl/shortcuts/right-trigger/EBOOT.PBP", 1);
break;
}
if(pad.Buttons & PSP_CTRL_START)
{
run_eboot("ms0:/hbl/shortcuts/start/EBOOT.PBP", 1);
break;
}
if(pad.Buttons & PSP_CTRL_SELECT)
{
run_eboot("ms0:/hbl/shortcuts/select/EBOOT.PBP", 1);
break;
}
if(pad.Buttons & PSP_CTRL_UP)
{
run_eboot("ms0:/hbl/shortcuts/up/EBOOT.PBP", 1);
break;
}
if(pad.Buttons & PSP_CTRL_RIGHT)
{
run_eboot("ms0:/hbl/shortcuts/right/EBOOT.PBP", 1);
break;
}
if(pad.Buttons & PSP_CTRL_DOWN)
{
run_eboot("ms0:/hbl/shortcuts/down/EBOOT.PBP", 1);
break;
}
if(pad.Buttons & PSP_CTRL_LEFT)
{
run_eboot("ms0:/hbl/shortcuts/left/EBOOT.PBP", 1);
break;
}
if(pad.Buttons & PSP_CTRL_HOME)
{
run_eboot(g->menupath, 1);
break;
}
else
{
run_eboot("ms0:/hbl/shortcuts/default/EBOOT.PBP", 1);
break;
}
}
}The original idea was that I'll probably set the HEN to autoboot when it's released. But I can't miss HBL, so I'll be able to go to HBL if I press for example the left trigger while booting the patapon exploit. Just for the nostalgia.
Anyways, comments, tips, links to handy tutorials are always welcome.

