summaryrefslogtreecommitdiff
path: root/apps/main_menu.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-07-15 11:02:12 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-07-15 11:02:12 +0000
commit6b25f79af039b8b367b4fff8c3aadac1cca0ab7d (patch)
treeb7d5c1d8c38bb0166370096922528347e34f1fa9 /apps/main_menu.c
parent5e2898f3d4d1bdd832334225a2ffbd9f121dabca (diff)
Settings are now saved in RTC RAM on Recorder (Heikki Hannikainen).
Introduced debug menu (Heikki Hannikainen). Cleaned up settings API. Added scroll_speed init. Moved dbg_ports() and dbg_rtc() from firmware/debug.c to apps/debug_menu.c Made panic buffer static. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1347 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main_menu.c')
-rw-r--r--apps/main_menu.c21
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
};