diff options
Diffstat (limited to 'apps/main_menu.c')
-rw-r--r-- | apps/main_menu.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c index e231a22033..de09897baa 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -25,7 +25,7 @@ #include "kernel.h" #include "main_menu.h" #include "version.h" -#include "debug.h" +#include "debug_menu.h" #include "sprintf.h" #include <string.h> #include "playlist.h" @@ -116,11 +116,25 @@ void show_credits(void) sleep((HZ*2)/10); if (button_get(false)) - return; + return; } roll_credits(); } +void show_info(void) +{ + char s[32]; + + lcd_clear_display(); + lcd_puts(0, 0, "Rockbox info:"); + /* TODO: add disk size/usage info, battery charge etc here? */ + snprintf(s, sizeof(s), "Booted: %d times", global_settings.total_boots); + lcd_puts(0, 2, s); + lcd_update(); + + button_get(true); +} + void main_menu(void) { int m; @@ -133,9 +147,10 @@ void main_menu(void) { "Games", games_menu }, { "Screensavers", screensavers_menu }, #endif + { "Info", show_info }, { "Version", show_credits }, #ifndef SIMULATOR - { "Debug (keep out!)", dbg_ports }, + { "Debug (keep out!)", debug_menu }, #endif }; |