Rockbox Development > Starting Development and Compiling

Main Menu (again!)

(1/1)

NPATz:
Hey,

If I wanted to remove some items from the main menu and just leave 'Files' 'Settings' and 'System' as options I assume I need to alter the code in apps/root_menu.c. However, I've looked through the code and searched the forums lots and can't seem to find the actual code that I would need to delete/comment out to just have the three menu items showing. Anyone able to help?

markun:
The code seems to be in apps/root_menu.c but I don't know exactly which code to comment out. I would think from the root_menu struct or the MAKE_MENU macro call.

JdGordon:
yep, you need to comment out items in the MAKE_MENU macro starting at line 393... you might also need to remove items for the root_items array... i havnt played in that code for a long time so dont remember what else needs fixing...

side note, maybe its time to simplify that so items can be more easily added/removed (even if in svn they are always going to be the same)

Navigation

[0] Message Index

Go to full version