forked from len0rd/rockbox
Add %cs tag.
It can be used conditionally and indicates the current screen (wps, rec, radio screens or lists). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23207 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
71411ee83a
commit
9072a4558c
5 changed files with 58 additions and 1 deletions
|
|
@ -73,6 +73,9 @@ struct root_items {
|
|||
static int last_screen = GO_TO_ROOT; /* unfortunatly needed so we can resume
|
||||
or goto current track based on previous
|
||||
screen */
|
||||
|
||||
int next_screen = GO_TO_ROOT;
|
||||
|
||||
static char current_track_path[MAX_PATH];
|
||||
static void rootmenu_track_changed_callback(void* param)
|
||||
{
|
||||
|
|
@ -504,10 +507,14 @@ void previous_music_is_wps(void)
|
|||
previous_music = GO_TO_WPS;
|
||||
}
|
||||
|
||||
int current_screen(void)
|
||||
{
|
||||
return next_screen;
|
||||
}
|
||||
|
||||
void root_menu(void)
|
||||
{
|
||||
int previous_browser = GO_TO_FILEBROWSER;
|
||||
int next_screen = GO_TO_ROOT;
|
||||
int selected = 0;
|
||||
|
||||
if (global_settings.start_in_screen == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue