diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/tree.c b/apps/tree.c index f4a49a9dce..4eeec4098d 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -141,7 +141,7 @@ extern unsigned char bitmap_icons_6x8[LastIcon][6]; | |||
141 | #define TREE_ATTR_M3U 0x80 /* playlist */ | 141 | #define TREE_ATTR_M3U 0x80 /* playlist */ |
142 | #define TREE_ATTR_WPS 0x100 /* wps config file */ | 142 | #define TREE_ATTR_WPS 0x100 /* wps config file */ |
143 | #define TREE_ATTR_MOD 0x200 /* firmware file */ | 143 | #define TREE_ATTR_MOD 0x200 /* firmware file */ |
144 | #define TREE_ATTR_EQ 0x400 /* EQ config file */ | 144 | #define TREE_ATTR_CFG 0x400 /* config file */ |
145 | #define TREE_ATTR_TXT 0x500 /* text file */ | 145 | #define TREE_ATTR_TXT 0x500 /* text file */ |
146 | #define TREE_ATTR_FONT 0x800 /* font file */ | 146 | #define TREE_ATTR_FONT 0x800 /* font file */ |
147 | #define TREE_ATTR_LNG 0x1000 /* binary lang file */ | 147 | #define TREE_ATTR_LNG 0x1000 /* binary lang file */ |
@@ -256,8 +256,8 @@ static int showdir(char *path, int start) | |||
256 | dptr->attr |= TREE_ATTR_MPA; | 256 | dptr->attr |= TREE_ATTR_MPA; |
257 | else if (!strcasecmp(&entry->d_name[len-4], ".m3u")) | 257 | else if (!strcasecmp(&entry->d_name[len-4], ".m3u")) |
258 | dptr->attr |= TREE_ATTR_M3U; | 258 | dptr->attr |= TREE_ATTR_M3U; |
259 | else if (!strcasecmp(&entry->d_name[len-3], ".eq")) | 259 | else if (!strcasecmp(&entry->d_name[len-3], ".cfg")) |
260 | dptr->attr |= TREE_ATTR_EQ; | 260 | dptr->attr |= TREE_ATTR_CFG; |
261 | else if (!strcasecmp(&entry->d_name[len-4], ".wps")) | 261 | else if (!strcasecmp(&entry->d_name[len-4], ".wps")) |
262 | dptr->attr |= TREE_ATTR_WPS; | 262 | dptr->attr |= TREE_ATTR_WPS; |
263 | else if (!strcasecmp(&entry->d_name[len-4], ".txt")) | 263 | else if (!strcasecmp(&entry->d_name[len-4], ".txt")) |
@@ -383,7 +383,7 @@ static int showdir(char *path, int start) | |||
383 | icon_type = Wps; | 383 | icon_type = Wps; |
384 | break; | 384 | break; |
385 | 385 | ||
386 | case TREE_ATTR_EQ: | 386 | case TREE_ATTR_CFG: |
387 | icon_type = Wps; | 387 | icon_type = Wps; |
388 | break; | 388 | break; |
389 | 389 | ||
@@ -806,10 +806,10 @@ bool dirbrowse(char *root) | |||
806 | restore = true; | 806 | restore = true; |
807 | break; | 807 | break; |
808 | 808 | ||
809 | case TREE_ATTR_EQ: | 809 | case TREE_ATTR_CFG: |
810 | snprintf(buf, sizeof buf, "%s/%s", | 810 | snprintf(buf, sizeof buf, "%s/%s", |
811 | currdir, file->name); | 811 | currdir, file->name); |
812 | settings_load_eq(buf); | 812 | settings_load_config(buf); |
813 | restore = true; | 813 | restore = true; |
814 | break; | 814 | break; |
815 | 815 | ||