Move the root_menu() call out of tree.c.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13609 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-06-10 10:41:27 +00:00
parent 601ede7f9c
commit 2cda994431
3 changed files with 9 additions and 9 deletions

View file

@ -122,7 +122,8 @@ static void app_main(void)
#endif
{
init();
browse_root();
tree_gui_init();
root_menu();
}
static int init_dircache(bool preinit)
@ -272,7 +273,7 @@ static void init(void)
init_tagcache();
#endif
sleep(HZ/2);
tree_init();
tree_mem_init();
filetype_init();
playlist_init();
@ -503,7 +504,7 @@ static void init(void)
#endif
status_init();
playlist_init();
tree_init();
tree_mem_init();
filetype_init();
scrobbler_init();
cuesheet_init();

View file

@ -202,7 +202,8 @@ bool check_rockboxdir(void)
return true;
}
void browse_root(void)
/* do this really late in the init sequence */
void tree_gui_init(void)
{
gui_sync_wps_screen_init();
@ -222,8 +223,6 @@ void browse_root(void)
#endif
gui_synclist_init(&tree_lists, &tree_get_filename, &tc, false, 1);
gui_synclist_set_icon_callback(&tree_lists, &tree_get_fileicon);
/* not the best place for this call... but... */
root_menu();
}
@ -1078,7 +1077,7 @@ int rockbox_browse(const char *root, int dirfilter)
return ret_val;
}
void tree_init(void)
void tree_mem_init(void)
{
/* We copy the settings value in case it is changed by the user. We can't
use it until the next reboot. */

View file

@ -67,8 +67,8 @@ struct tree_context {
bool dirfull;
};
void tree_init(void);
void browse_root(void);
void tree_mem_init(void);
void tree_gui_init(void);
void get_current_file(char* buffer, int buffer_len);
int rockbox_browse(const char *root, int dirfilter);
bool create_playlist(void);