1
0
Fork 0
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:
Teruaki Kawashima 2009-08-27 13:30:26 +00:00
parent 9f64794c70
commit ed940e8830

View file

@ -121,7 +121,7 @@
const char appsversion[]=APPSVERSION;
static void init(void);
#ifdef SIMULATOR
void app_main(void)
#else
@ -142,6 +142,18 @@ static void app_main(void)
/* All threads should be created and public queues registered by now */
usb_start_monitoring();
#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();
}
@ -202,7 +214,6 @@ static int init_dircache(bool preinit)
splashf(0, "Dircache failed, disabled. Result: %d", result);
global_settings.dircache = false;
}
}
if (clear)
@ -579,17 +590,6 @@ static void init(void)
/* runtime database has to be initialized after audio_init() */
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
car_adapter_mode_init();
#endif