summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c12
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