From ef815729b6c2732a4ccc530402c4336a5a3e83b9 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 5 Aug 2007 12:14:07 +0000 Subject: Accept FS#7486 - shortcuts plugin. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14191 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index 5a4292d34c..9341f81421 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -454,8 +454,15 @@ void get_current_file(char* buffer, int buffer_len) tc.dirlength ? e->name : ""); } +/* Allow apps to change our dirfilter directly (required for sub browsers) + if they're suddenly going to become a file browser for example */ +void set_dirfilter(int l_dirfilter) +{ + *tc.dirfilter = l_dirfilter; +} + /* Selects a file and update tree context properly */ -static void set_current_file(char *path) +void set_current_file(char *path) { char *name; int i; -- cgit v1.2.3