summaryrefslogtreecommitdiffstats
path: root/apps/root_menu.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-10-16 19:14:33 +0000
committerThomas Martitz <kugel@rockbox.org>2009-10-16 19:14:33 +0000
commit9072a4558cb1db2b82ca3b001f6b95b5afda16c8 (patch)
treea97bb48981118cee6fd012dfcc55f12d35d0f38d /apps/root_menu.c
parent71411ee83a224034c5779c8046539fdd136d213f (diff)
downloadrockbox-9072a4558cb1db2b82ca3b001f6b95b5afda16c8.tar.gz
rockbox-9072a4558cb1db2b82ca3b001f6b95b5afda16c8.tar.bz2
rockbox-9072a4558cb1db2b82ca3b001f6b95b5afda16c8.zip
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
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index feff126e03..302e889b60 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -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)