summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/apps/main.c b/apps/main.c
index 20b9a0bc55..1e8e872296 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -78,6 +78,10 @@
78#include "bootchart.h" 78#include "bootchart.h"
79#include "logdiskf.h" 79#include "logdiskf.h"
80#include "bootdata.h" 80#include "bootdata.h"
81#if defined(HAVE_DEVICEDATA)
82#include "devicedata.h"
83#endif
84
81#if (CONFIG_PLATFORM & PLATFORM_ANDROID) 85#if (CONFIG_PLATFORM & PLATFORM_ANDROID)
82#include "notification.h" 86#include "notification.h"
83#endif 87#endif
@@ -131,6 +135,12 @@
131#define MAIN_NORETURN_ATTR 135#define MAIN_NORETURN_ATTR
132#endif 136#endif
133 137
138#if (CONFIG_PLATFORM & PLATFORM_HOSTED)
139#ifdef HAVE_MULTIVOLUME
140#include "pathfuncs.h" /* for init_volume_names */
141#endif
142#endif
143
134#if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) 144#if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA))
135#ifdef SIMULATOR 145#ifdef SIMULATOR
136#include "sim_tasks.h" 146#include "sim_tasks.h"
@@ -170,6 +180,9 @@ int main(void)
170 } 180 }
171 list_init(); 181 list_init();
172 tree_init(); 182 tree_init();
183#if defined(HAVE_DEVICEDATA) && !defined(BOOTLOADER) /* SIMULATOR */
184 verify_device_data();
185#endif
173 /* Keep the order of this 3 186 /* Keep the order of this 3
174 * Must be done before any code uses the multi-screen API */ 187 * Must be done before any code uses the multi-screen API */
175#ifdef HAVE_USBSTACK 188#ifdef HAVE_USBSTACK
@@ -381,6 +394,9 @@ static void init(void)
381 powermgmt_init(); 394 powermgmt_init();
382 backlight_init(); 395 backlight_init();
383 unicode_init(); 396 unicode_init();
397#ifdef HAVE_MULTIVOLUME
398 init_volume_names();
399#endif
384#ifdef SIMULATOR 400#ifdef SIMULATOR
385 sim_tasks_init(); 401 sim_tasks_init();
386#endif 402#endif
@@ -450,6 +466,10 @@ static void init(void)
450 verify_boot_data(); 466 verify_boot_data();
451#endif 467#endif
452 468
469#if defined(HAVE_DEVICEDATA) && !defined(BOOTLOADER)
470 verify_device_data();
471#endif
472
453 /* early early early! */ 473 /* early early early! */
454 filesystem_init(); 474 filesystem_init();
455 475
@@ -604,7 +624,7 @@ static void init(void)
604 { 624 {
605 lcd_clear_display(); 625 lcd_clear_display();
606 lcd_puts(0, 0, "No partition"); 626 lcd_puts(0, 0, "No partition");
607 lcd_puts(0, 1, "found."); 627 lcd_putsf(0, 1, "found (%d).", rc);
608#ifndef USB_NONE 628#ifndef USB_NONE
609 lcd_puts(0, 2, "Insert USB cable"); 629 lcd_puts(0, 2, "Insert USB cable");
610 lcd_puts(0, 3, "and fix it."); 630 lcd_puts(0, 3, "and fix it.");