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

My first menu some help needed.

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
MNX
Posts: 5
Joined: Tue Nov 09, 2010 5:56 pm

My first menu some help needed.

Post by MNX » Wed Nov 10, 2010 6:42 pm

(I have vary little coding skill, I was hoping that making this menu well let me grow my skills.)
Hey I'm working on a new HBL menu (sorta) let me explane, this new menu well be used with 6.20 tn for when your psp may crash/coldboot and you dont want to waste some time going thou your homebrew list looking for 6.20 tn. This well load the homebrew once it runs, rather than taking you to a menu it well load the homebrew once hbl starts.

I have some questions and some needed help with coding.
- Is there a code to make the menu load the homebrew without a button press? It just loads?
- what code is NEEDED in a menu, stuff that I shouldn't remove from the menu.

I'm using the source of simple menu v2 being as it looks to be well made. But I have other source's too.

Thanks for your guys help. I hope to get this done before 6.20tn is out. (I well test by loading another homebrew)
Advertising

JJS
Big Beholder
Posts: 1416
Joined: Mon Sep 27, 2010 2:18 pm
Contact:

Re: My first menu some help needed.

Post by JJS » Wed Nov 10, 2010 7:03 pm

MNX wrote:it well load the homebrew once hbl starts
This is already possible by replacing the menu EBOOT with another homebrew. This works since the menu is just a homebrew program.


Because you say you want to learn from it, here are still answers to your questions:
MNX wrote:Is there a code to make the menu load the homebrew without a button press? It just loads?
Sure. This is in fact much easier than coding a menu because the most code in a HBL menu is dealing with processing buttons and reading in the homebrew information from the memory stick. You should read this blog entry. You only need the code there and you only have to fill in the path of the EBOOT you want to run and then exit your application. The default menu sets the path in the function "setEboot()".
Advertising

MNX
Posts: 5
Joined: Tue Nov 09, 2010 5:56 pm

Re: My first menu some help needed.

Post by MNX » Wed Nov 10, 2010 7:11 pm

*Bows to the grate JJS* thank you, I hope this menu can become a mainstream menu for people with 6.20tn,

I'm also wondering if I can posably make it editable thou a config file outside the .pbp of the menu. like how Seplugins works on Gen d3?:
ms0:/psp/games/hen/eboot.pbp

can be edited to:
ms0:/psp/games/wagic/eboot.pbp

anyway to do that?

JJS
Big Beholder
Posts: 1416
Joined: Mon Sep 27, 2010 2:18 pm
Contact:

Re: My first menu some help needed.

Post by JJS » Wed Nov 10, 2010 7:19 pm

MNX wrote:I hope this menu can become a mainstream menu for people with 6.20tn
Well, read my first reply again. What I said is that people can replace the menu with the HEN's EBOOT and have the same functionality as with your menu.
MNX wrote:anyway to do that?
Certainly. This is more of a general C programming question though, nothing special to do with HBL or even with the PSP. You should find a lot of examples on the net how to read in text from a file in C.

MNX
Posts: 5
Joined: Tue Nov 09, 2010 5:56 pm

Re: My first menu some help needed.

Post by MNX » Wed Nov 10, 2010 7:24 pm

JJS wrote:
MNX wrote:I hope this menu can become a mainstream menu for people with 6.20tn
Well, read my first reply again. What I said is that people can replace the menu with the HEN's EBOOT and have the same functionality as with your menu.
meh still. lol cant that brake the hen thou? being as with my guess there may be some stuff in the root of the ms?
JJS wrote:
MNX wrote:anyway to do that?
Certainly. This is more of a general C programming question though, nothing special to do with HBL or even with the PSP. You should find a lot of examples on the net how to read in text from a file in C.
I just found that XD

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

Re: My first menu some help needed.

Post by Mr. X » Wed Nov 10, 2010 8:09 pm

JJS said it all really.

Easy way: replace HBL's menu with TN's HEN.

"Hard" way: stick this in main.c somewhere below the bracket after the line "int main(int argc, char *argv[])":

Code: Select all

strcpy(ebootPath, "ms0:/HEN/EBOOT.PBP");
sceKernelExitGame();
All HBL Revisions: Binaries + Source | Topic
TN HEN Releases: Download

User avatar
Metroid_III
Posts: 30
Joined: Tue Sep 28, 2010 8:26 pm
Location: Marietta, GA

Re: My first menu some help needed.

Post by Metroid_III » Sun Nov 21, 2010 8:21 pm

Dont forget that placing a homebrew EBOOT in ms0:/HBL/GAME will have the same effect, and no loading the HEN before the menu won't break it :D

Post Reply

Return to “Half Byte Loader Development”