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
| | |-+  help overriding "root menu order"
« previous next »
  • Print
Pages: [1]

Author Topic: help overriding "root menu order"  (Read 491 times)

Offline bobba_mosfet

  • Member
  • *
  • Posts: 54
help overriding "root menu order"
« on: November 21, 2019, 07:17:27 PM »
Now that there is a recent stable build I'm hacking my way through the release to bake in all of the settings I normally set via the cfg file.

I occasionally have a glitch where the .cfg file is not read and its frustrating to have to re-load the .cfg or reboot to apply custom settings.

I've managed to do everything I wanted:

1) replace max playlist entries to 99999
2) make sleeptimer_on_startup true
3) set keypress_restarts_sleeptimer to true
4) replace many lines in settings_list.c to set custom colors, fonts, wps, sbs etc. so that naranjada is always the default theme instead of cabbiev2.

I have issues with the idle shutdown not working (without reading the source I suspect its because I leave music playing)
Using the sleep timer saves my battery from emptying and degrading with the high draw of the msata mod!

If you're still reading, I'm having a bit of an issue with overriding the "root menu order" option.

I can see in settings_list.c:

Code: [Select]
   CUSTOM_SETTING(0, root_menu_customized,
                  LANG_ROCKBOX_TITLE, /* lang string here is never actually used */
                  NULL, "root menu order",
                  root_menu_load_from_cfg, root_menu_write_to_cfg,
                  root_menu_is_changed, root_menu_set_default),

I've tried tried replacing the 4th 'default' parameter from NULL to "settings" etc. to try and customise the main menu but its not working out.

I've had a play with the contents of root_menu.c too but couldn't manage to override the default.

the structure of CUSTOM_SETTING:
Code: [Select]
#define CUSTOM_SETTING(flags, var, lang_id, default, name, load_from_cfg, write_to_cfg, is_change, set_default)

If anyone has any suggestions, it would be appreciated.

Thanks again to all who have contributed to rockbox!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  help overriding "root menu order"
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.068 seconds with 21 queries.