Advertising (This ad goes away for registered users. You can Login or Register)

Question?!?

This is the development forum of the half-byte loader project. For general Half Byte Loader questions, visit the Half Byte Loader forum.
Forum rules
This forum is for HBL Development discussions ONLY. For User support or HBL general discussions, go to viewforum.php?f=3 . Messages that are not development related will be deleted.
Post Reply
kidz axe
Posts: 353
Joined: Sun Oct 03, 2010 3:48 pm
Location: http://kidz-axe.co.cc/forum/
Contact:

Question?!?

Post by kidz axe » Sun Nov 21, 2010 5:23 pm

I have a psp 30004, Patapon demo 2 running hbl rev 107
So heres my question;
is there a way that after the save data loads, and you press any button, and the part where you have to press R trigger. in that part is it possible that if we modify the code a little bit, and put in 2 menus. Then when you have to press the R trigger, but when you press the L Trigger it loads the other menu.
same question again but with loading homebrew.
please help, i have to idea about programming except the "print" functions.
please dont start an argument in this forum.
i am a Noob, MUAHAHAHAHAHAHA (im not proud of that )
Advertising
:)

TiPi
Retired Mod
Posts: 740
Joined: Tue Sep 28, 2010 5:32 am
Contact:

Re: Question?!?

Post by TiPi » Sun Nov 21, 2010 5:58 pm

I'm working on that (click).
Currently it doesn't work with menu's yet, but I'll try to code something better soon, and release a binary version.
Advertising
Problems or questions? Feel free to contact me.
-My Blog-

Mr. X
Retired Mod
Posts: 528
Joined: Tue Sep 28, 2010 8:01 am
Location: England

Re: Question?!?

Post by Mr. X » Sun Nov 21, 2010 6:01 pm

Not possible to do it the way you suggested as that would mean actually editing Patapon itself, which can't be done. TiPi offered something extremely similar to what you're asking for though, the topic can be found here: viewtopic.php?f=5&t=441

Edit: ^^ dang.
All HBL Revisions: Binaries + Source | Topic
TN HEN Releases: Download

kidz axe
Posts: 353
Joined: Sun Oct 03, 2010 3:48 pm
Location: http://kidz-axe.co.cc/forum/
Contact:

Re: Question?!?

Post by kidz axe » Sun Nov 21, 2010 6:06 pm

I have already read Tipo's post, But i dont understand where the .c file is, please answer.
:)

TiPi
Retired Mod
Posts: 740
Joined: Tue Sep 28, 2010 5:32 am
Contact:

Re: Question?!?

Post by TiPi » Sun Nov 21, 2010 6:12 pm

kidz axe wrote:I have already reaed Tipo's post, But i dont understand where the .c file is, please answer.
Just download this, open up eLoader.c in your favorite code editor (like notepad++);

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;
		}
	}
}
Compile it, make a 'shortcuts' folder in your HBL directory and make the following folders within that folder: default, circle, cross, square, left, right, up, down, left-trigger, right-trigger, start and select. Place your homebrews in the corresponding folder and then you're good to go! Although it only works with homebrews atm, so I don't recommend you to use it right now. I'll try to upload a better binary version of HBL that includes this modification in a couple of days.
Problems or questions? Feel free to contact me.
-My Blog-

kidz axe
Posts: 353
Joined: Sun Oct 03, 2010 3:48 pm
Location: http://kidz-axe.co.cc/forum/
Contact:

Re: Question?!?

Post by kidz axe » Sun Nov 21, 2010 6:21 pm

how do we compile it?
I know im a noob, i just want to be able to open the Visual Menu and the Wmenu with having to delete the "menu" folders in the memory.
Tipi, if you can please send me a compiled version incase i screw up. PLEASE
:)

User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: Question?!?

Post by m0skit0 » Sun Nov 21, 2010 6:23 pm

You can learn programming and do it yourself, as TiPi did, as I did, and as a lot of people did.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

TiPi
Retired Mod
Posts: 740
Joined: Tue Sep 28, 2010 5:32 am
Contact:

Re: Question?!?

Post by TiPi » Sun Nov 21, 2010 6:24 pm

kidz axe wrote:how do we compile it?
I know im a noob, i just want to be able to open the Visual Menu and the Wmenu with having to delete the "menu" folders in the memory.
Tipi, if you can please send me a compiled version incase i screw up. PLEASE
As I said, the code doesn't work for menu's yet. I'll try to fix that in a couple of days.
Problems or questions? Feel free to contact me.
-My Blog-

Post Reply

Return to “Half Byte Loader Development”