forked from len0rd/rockbox
split the theme settings apply() sutff out of settings_apply(). this should fix splashes not being loc'ed, statusbar over the splash (fixed in sim, not on my mini2g though), and the supposed boot time slowdown.
What this also does is remove a bunch of unnecessary settings_Apply()'s from the ipod accessory code, and causes all non-skin settings to get applied each time (this includes font and langs which we wernt doing to stop disk access) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24922 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c396e4161a
commit
4c6b3551b5
10 changed files with 146 additions and 118 deletions
12
apps/main.c
12
apps/main.c
|
|
@ -325,11 +325,10 @@ static void init(void)
|
|||
sb_skin_init();
|
||||
viewportmanager_init();
|
||||
|
||||
gui_sync_wps_init();
|
||||
storage_init();
|
||||
settings_reset();
|
||||
settings_load(SETTINGS_ALL);
|
||||
settings_apply(false);
|
||||
settings_apply();
|
||||
init_dircache(true);
|
||||
init_dircache(false);
|
||||
#ifdef HAVE_TAGCACHE
|
||||
|
|
@ -368,7 +367,7 @@ static void init(void)
|
|||
audio_init();
|
||||
button_clear_queue(); /* Empty the keyboard buffer */
|
||||
|
||||
settings_apply(true);
|
||||
settings_apply_skins();
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
@ -455,8 +454,6 @@ static void init(void)
|
|||
sb_skin_init();
|
||||
viewportmanager_init();
|
||||
|
||||
gui_sync_wps_init();
|
||||
|
||||
#if CONFIG_CHARGING && (CONFIG_CPU == SH7034)
|
||||
/* charger_inserted() can't be used here because power_thread()
|
||||
hasn't checked power_input_status() yet */
|
||||
|
|
@ -562,7 +559,7 @@ static void init(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
settings_apply(false);
|
||||
settings_apply();
|
||||
init_dircache(false);
|
||||
#ifdef HAVE_TAGCACHE
|
||||
init_tagcache();
|
||||
|
|
@ -627,8 +624,7 @@ static void init(void)
|
|||
#ifdef HAVE_HOTSWAP_STORAGE_AS_MAIN
|
||||
check_bootfile(false); /* remember write time and filesize */
|
||||
#endif
|
||||
|
||||
settings_apply(true);
|
||||
settings_apply_skins();
|
||||
}
|
||||
|
||||
#ifdef CPU_PP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue