diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-26 08:01:41 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-26 08:01:41 +0000 |
commit | 4c6b3551b585590e21639d09198b0777b25bf04f (patch) | |
tree | 61175529bff58521341186528871074b366e6436 /apps/main.c | |
parent | c396e4161a9bd3f15b779476b3f18400abbecf11 (diff) | |
download | rockbox-4c6b3551b585590e21639d09198b0777b25bf04f.tar.gz rockbox-4c6b3551b585590e21639d09198b0777b25bf04f.zip |
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
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/main.c b/apps/main.c index 6d2609b486..187f0cdd96 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -325,11 +325,10 @@ static void init(void) | |||
325 | sb_skin_init(); | 325 | sb_skin_init(); |
326 | viewportmanager_init(); | 326 | viewportmanager_init(); |
327 | 327 | ||
328 | gui_sync_wps_init(); | ||
329 | storage_init(); | 328 | storage_init(); |
330 | settings_reset(); | 329 | settings_reset(); |
331 | settings_load(SETTINGS_ALL); | 330 | settings_load(SETTINGS_ALL); |
332 | settings_apply(false); | 331 | settings_apply(); |
333 | init_dircache(true); | 332 | init_dircache(true); |
334 | init_dircache(false); | 333 | init_dircache(false); |
335 | #ifdef HAVE_TAGCACHE | 334 | #ifdef HAVE_TAGCACHE |
@@ -368,7 +367,7 @@ static void init(void) | |||
368 | audio_init(); | 367 | audio_init(); |
369 | button_clear_queue(); /* Empty the keyboard buffer */ | 368 | button_clear_queue(); /* Empty the keyboard buffer */ |
370 | 369 | ||
371 | settings_apply(true); | 370 | settings_apply_skins(); |
372 | } | 371 | } |
373 | 372 | ||
374 | #else | 373 | #else |
@@ -455,8 +454,6 @@ static void init(void) | |||
455 | sb_skin_init(); | 454 | sb_skin_init(); |
456 | viewportmanager_init(); | 455 | viewportmanager_init(); |
457 | 456 | ||
458 | gui_sync_wps_init(); | ||
459 | |||
460 | #if CONFIG_CHARGING && (CONFIG_CPU == SH7034) | 457 | #if CONFIG_CHARGING && (CONFIG_CPU == SH7034) |
461 | /* charger_inserted() can't be used here because power_thread() | 458 | /* charger_inserted() can't be used here because power_thread() |
462 | hasn't checked power_input_status() yet */ | 459 | hasn't checked power_input_status() yet */ |
@@ -562,7 +559,7 @@ static void init(void) | |||
562 | #endif | 559 | #endif |
563 | } | 560 | } |
564 | 561 | ||
565 | settings_apply(false); | 562 | settings_apply(); |
566 | init_dircache(false); | 563 | init_dircache(false); |
567 | #ifdef HAVE_TAGCACHE | 564 | #ifdef HAVE_TAGCACHE |
568 | init_tagcache(); | 565 | init_tagcache(); |
@@ -627,8 +624,7 @@ static void init(void) | |||
627 | #ifdef HAVE_HOTSWAP_STORAGE_AS_MAIN | 624 | #ifdef HAVE_HOTSWAP_STORAGE_AS_MAIN |
628 | check_bootfile(false); /* remember write time and filesize */ | 625 | check_bootfile(false); /* remember write time and filesize */ |
629 | #endif | 626 | #endif |
630 | 627 | settings_apply_skins(); | |
631 | settings_apply(true); | ||
632 | } | 628 | } |
633 | 629 | ||
634 | #ifdef CPU_PP | 630 | #ifdef CPU_PP |