summaryrefslogtreecommitdiffstats
path: root/apps/filetree.c
diff options
context:
space:
mode:
authorChristi Scarborough <christi@coraline.org>2005-11-17 20:14:59 +0000
committerChristi Scarborough <christi@coraline.org>2005-11-17 20:14:59 +0000
commit4c0b83f5e913820bbcf203fee1606d9910925946 (patch)
treec4e9cdcb1cf8196f60a3ff8b68ebc5d1a514e967 /apps/filetree.c
parentbc1fb0f5d91084d3e06ef3526533324108bf1de7 (diff)
downloadrockbox-4c0b83f5e913820bbcf203fee1606d9910925946.tar.gz
rockbox-4c0b83f5e913820bbcf203fee1606d9910925946.tar.bz2
rockbox-4c0b83f5e913820bbcf203fee1606d9910925946.zip
Remote WPS support (and some WPS bugfixes) by Stephan Wezel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7934 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/filetree.c')
-rw-r--r--apps/filetree.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/apps/filetree.c b/apps/filetree.c
index a9670e1be7..6855d3ec5d 100644
--- a/apps/filetree.c
+++ b/apps/filetree.c
@@ -31,7 +31,7 @@
#include "filetypes.h"
#include "talk.h"
#include "playlist.h"
-#include "wps-display.h"
+#include "gwps.h"
#include "lang.h"
#include "language.h"
#include "screens.h"
@@ -273,6 +273,9 @@ int ft_load(struct tree_context* c, const char* tempdir)
(dptr->attr & TREE_ATTR_MASK) != TREE_ATTR_M3U) ||
(*c->dirfilter == SHOW_SUPPORTED && !filetype_supported(dptr->attr)))) ||
(*c->dirfilter == SHOW_WPS && (dptr->attr & TREE_ATTR_MASK) != TREE_ATTR_WPS) ||
+#ifdef HAVE_REMOTE_LCD
+ (*c->dirfilter == SHOW_RWPS && (dptr->attr & TREE_ATTR_MASK) != TREE_ATTR_RWPS) ||
+#endif
(*c->dirfilter == SHOW_CFG && (dptr->attr & TREE_ATTR_MASK) != TREE_ATTR_CFG) ||
(*c->dirfilter == SHOW_LNG && (dptr->attr & TREE_ATTR_MASK) != TREE_ATTR_LNG) ||
(*c->dirfilter == SHOW_MOD && (dptr->attr & TREE_ATTR_MASK) != TREE_ATTR_MOD) ||
@@ -381,11 +384,20 @@ int ft_enter(struct tree_context* c)
/* wps config file */
case TREE_ATTR_WPS:
- wps_load(buf,true);
+ wps_data_load(gui_syncwps.gui_wps[0].data, buf, true, true);
set_file(buf, global_settings.wps_file,
MAX_FILENAME);
break;
+#ifdef HAVE_REMOTE_LCD
+ /* remote-wps config file */
+ case TREE_ATTR_RWPS:
+ wps_data_load(gui_syncwps.gui_wps[1].data, buf, true, true);
+ set_file(buf, global_settings.rwps_file,
+ MAX_FILENAME);
+ break;
+#endif
+
case TREE_ATTR_CFG:
if (!settings_load_config(buf))
break;