forked from len0rd/rockbox
Now define SETTINGS_RESET if we have a button to reset settings during
boot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8191 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e769b80cd9
commit
8e8c1a8b8f
1 changed files with 5 additions and 3 deletions
|
|
@ -71,6 +71,7 @@
|
||||||
#endif
|
#endif
|
||||||
#if defined(IRIVER_H100_SERIES) && !defined(SIMULATOR)
|
#if defined(IRIVER_H100_SERIES) && !defined(SIMULATOR)
|
||||||
#include "pcm_record.h"
|
#include "pcm_record.h"
|
||||||
|
#define SETTINGS_RESET BUTTON_REC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_TUNER
|
#ifdef CONFIG_TUNER
|
||||||
|
|
@ -322,16 +323,17 @@ void init(void)
|
||||||
|
|
||||||
settings_calc_config_sector();
|
settings_calc_config_sector();
|
||||||
|
|
||||||
|
#ifdef SETTINGS_RESET
|
||||||
/* Reset settings if holding the rec button. */
|
/* Reset settings if holding the rec button. */
|
||||||
if ((button_status() & BUTTON_REC) == BUTTON_REC)
|
if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET)
|
||||||
{
|
{
|
||||||
gui_syncsplash(HZ*2, true, str(LANG_RESET_DONE_CLEAR));
|
gui_syncsplash(HZ*2, true, str(LANG_RESET_DONE_CLEAR));
|
||||||
settings_reset();
|
settings_reset();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
#endif
|
||||||
settings_load(SETTINGS_ALL);
|
settings_load(SETTINGS_ALL);
|
||||||
}
|
|
||||||
|
|
||||||
init_dircache();
|
init_dircache();
|
||||||
gui_sync_wps_init();
|
gui_sync_wps_init();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue