summaryrefslogtreecommitdiff
path: root/apps/settings_list.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-06-01 02:00:30 +0100
committerAidan MacDonald <amachronic@protonmail.com>2024-04-01 17:23:06 +0100
commitf026cc4e176fb80e8d592b95d7a012b7565dd6cc (patch)
treea0b2204da3050188a7d5b15c6e96a01d9b3f30e9 /apps/settings_list.c
parentac1f92d9e8856f76dd15bc8a314e0646adbe9cf9 (diff)
downloadrockbox-f026cc4e176fb80e8d592b95d7a012b7565dd6cc.tar.gz
rockbox-f026cc4e176fb80e8d592b95d7a012b7565dd6cc.zip
tagcache: Add menu entry for customizing the DB path
Allow the database path to be set from the file browser's "Set As" context menu, so it can be changed without editing the .cfg file by hand. Change-Id: Ie1a84bcb2084ee3b1a0a18cc51f564238515f164
Diffstat (limited to 'apps/settings_list.c')
-rw-r--r--apps/settings_list.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c
index 6f6425a693..74db7550bf 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -142,6 +142,12 @@
142 (struct filename_setting[]){ \ 142 (struct filename_setting[]){ \
143 {prefix,suffix,sizeof(global_settings.var)}}} } 143 {prefix,suffix,sizeof(global_settings.var)}}} }
144 144
145#define DIRECTORY_SETTING(flags,var,lang_id,name,default) \
146 {flags|F_DIRNAME|F_T_UCHARPTR, &global_settings.var, lang_id, \
147 CHARPTR(default), name, NULL, \
148 {.filename_setting=(struct filename_setting[]){ \
149 {NULL, NULL, sizeof(global_settings.var)}}}}
150
145/* Used for settings which use the set_option() setting screen. 151/* Used for settings which use the set_option() setting screen.
146 The ... arg is a list of pointers to strings to display in the setting 152 The ... arg is a list of pointers to strings to display in the setting
147 screen. These can either be literal strings, or ID2P(LANG_*) */ 153 screen. These can either be literal strings, or ID2P(LANG_*) */