Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Main Menu (again!)
« previous next »
  • Print
Pages: [1]

Author Topic: Main Menu (again!)  (Read 1583 times)

Offline NPATz

  • Member
  • *
  • Posts: 1
Main Menu (again!)
« on: October 08, 2009, 09:58:45 PM »
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?
Logged

Offline markun

  • Developer
  • Member
  • *
  • Posts: 462
Re: Main Menu (again!)
« Reply #1 on: October 10, 2009, 05:39:47 AM »
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.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Main Menu (again!)
« Reply #2 on: October 12, 2009, 10:26:21 PM »
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)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Main Menu (again!)
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.072 seconds with 15 queries.