summaryrefslogtreecommitdiffstats
path: root/apps/filetree.c
diff options
context:
space:
mode:
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;