forked from len0rd/rockbox
fix FS#10550. Start autostart.rock after gui_syncstatusbar_init().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22517 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9f64794c70
commit
ed940e8830
1 changed files with 13 additions and 13 deletions
26
apps/main.c
26
apps/main.c
|
|
@ -121,7 +121,7 @@
|
||||||
const char appsversion[]=APPSVERSION;
|
const char appsversion[]=APPSVERSION;
|
||||||
|
|
||||||
static void init(void);
|
static void init(void);
|
||||||
|
|
||||||
#ifdef SIMULATOR
|
#ifdef SIMULATOR
|
||||||
void app_main(void)
|
void app_main(void)
|
||||||
#else
|
#else
|
||||||
|
|
@ -142,6 +142,18 @@ static void app_main(void)
|
||||||
/* All threads should be created and public queues registered by now */
|
/* All threads should be created and public queues registered by now */
|
||||||
usb_start_monitoring();
|
usb_start_monitoring();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef AUTOROCK
|
||||||
|
{
|
||||||
|
static const char filename[] = PLUGIN_APPS_DIR "/autostart.rock";
|
||||||
|
|
||||||
|
if(file_exists(filename)) /* no complaint if it doesn't exist */
|
||||||
|
{
|
||||||
|
plugin_load((char*)filename, NULL); /* start if it does */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif /* #ifdef AUTOROCK */
|
||||||
|
|
||||||
root_menu();
|
root_menu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -202,7 +214,6 @@ static int init_dircache(bool preinit)
|
||||||
splashf(0, "Dircache failed, disabled. Result: %d", result);
|
splashf(0, "Dircache failed, disabled. Result: %d", result);
|
||||||
global_settings.dircache = false;
|
global_settings.dircache = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (clear)
|
if (clear)
|
||||||
|
|
@ -579,17 +590,6 @@ static void init(void)
|
||||||
/* runtime database has to be initialized after audio_init() */
|
/* runtime database has to be initialized after audio_init() */
|
||||||
cpu_boost(false);
|
cpu_boost(false);
|
||||||
|
|
||||||
#ifdef AUTOROCK
|
|
||||||
{
|
|
||||||
static const char filename[] = PLUGIN_APPS_DIR "/autostart.rock";
|
|
||||||
|
|
||||||
if(file_exists(filename)) /* no complaint if it doesn't exist */
|
|
||||||
{
|
|
||||||
plugin_load((char*)filename, NULL); /* start if it does */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif /* #ifdef AUTOROCK */
|
|
||||||
|
|
||||||
#if CONFIG_CHARGING
|
#if CONFIG_CHARGING
|
||||||
car_adapter_mode_init();
|
car_adapter_mode_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue