diff options
| author | Miika Pekkarinen <miipekk@ihme.org> | 2005-12-07 11:20:56 +0000 |
|---|---|---|
| committer | Miika Pekkarinen <miipekk@ihme.org> | 2005-12-07 11:20:56 +0000 |
| commit | a697717f5d02c64f0caf958db086e1f31115a807 (patch) | |
| tree | 753b725419f30e225c4a661ec5ebcc47d593eabc /apps | |
| parent | a2e0d11170af6f106292f16ee124a52cfeebf3e2 (diff) | |
| download | rockbox-a697717f5d02c64f0caf958db086e1f31115a807.zip rockbox-a697717f5d02c64f0caf958db086e1f31115a807.tar.gz rockbox-a697717f5d02c64f0caf958db086e1f31115a807.tar.bz2 rockbox-a697717f5d02c64f0caf958db086e1f31115a807.tar.xz | |
Holding record button immediately after rockbox bootloader, causes
settings to be cleared.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8189 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/main.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/main.c b/apps/main.c index 7bde823..6d4e638 100644 --- a/apps/main.c +++ b/apps/main.c @@ -60,8 +60,10 @@ #include "misc.h" #include "database.h" #include "dircache.h" +#include "tagcache.h" #include "lang.h" #include "string.h" +#include "splash.h" #if (CONFIG_CODEC == SWCODEC) #include "pcmbuf.h" @@ -130,6 +132,8 @@ void init_dircache(void) lcd_update(); } } + + tagcache_init(); } #else # define init_dircache(...) @@ -320,7 +324,18 @@ void init(void) } settings_calc_config_sector(); - settings_load(SETTINGS_ALL); + + /* Reset settings if holding the rec button. */ + if ((button_status() & BUTTON_REC) == BUTTON_REC) + { + gui_syncsplash(HZ*2, true, str(LANG_RESET_DONE_CLEAR)); + settings_reset(); + } + else + { + settings_load(SETTINGS_ALL); + } + init_dircache(); gui_sync_wps_init(); settings_apply(); |