summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJustin Heiner <jheiner@rockbox.org>2002-09-06 07:00:20 +0000
committerJustin Heiner <jheiner@rockbox.org>2002-09-06 07:00:20 +0000
commit2f9b54b2514442ee810c9af02a977acf10ddfc5a (patch)
treee6dfeede843d4263f42840875064cbb6a6b8eae7 /apps
parent3d90ed43f1620cd62f766aa56b716fa250484045 (diff)
downloadrockbox-2f9b54b2514442ee810c9af02a977acf10ddfc5a.tar.gz
rockbox-2f9b54b2514442ee810c9af02a977acf10ddfc5a.zip
Added a 'Load Default Config' menu to the System menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2204 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/settings_menu.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 3904e19cdb..07397886f3 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -243,6 +243,35 @@ Menu playback_settings_menu(void)
return result;
}
+Menu load_default_config(void)
+{
+ int button = 0;
+
+ lcd_clear_display();
+#ifdef HAVE_LCD_CHARCELLS
+ lcd_puts(0,0,"Really?");
+ lcd_puts(0,1,"Play/Stop");
+#else
+ lcd_puts(0,0,"Are you sure?");
+ lcd_puts(0,1,"Play = Yes");
+ lcd_puts(0,2,"Any Other = No");
+#endif
+ button = button_get(true);
+ if (button == BUTTON_PLAY) {
+ settings_reset();
+ lcd_clear_display();
+ lcd_puts(0,0,"Settings");
+ lcd_puts(0,1,"Cleared");
+ sleep(HZ);
+ return(true);
+ } else {
+ lcd_clear_display();
+ lcd_puts(0,0,"Canceled");
+ sleep(HZ);
+ return(false);
+ }
+}
+
Menu fileview_settings_menu(void)
{
int m;
@@ -290,6 +319,7 @@ Menu system_settings_menu(void)
#ifdef HAVE_RTC
{ "Time/Date", timedate_set },
#endif
+ { "Load Default Config", load_default_config },
};
m=menu_init( items, sizeof items / sizeof(struct menu_items) );