diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-06-01 02:00:30 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2024-04-01 17:23:06 +0100 |
commit | f026cc4e176fb80e8d592b95d7a012b7565dd6cc (patch) | |
tree | a0b2204da3050188a7d5b15c6e96a01d9b3f30e9 /apps/settings_list.c | |
parent | ac1f92d9e8856f76dd15bc8a314e0646adbe9cf9 (diff) | |
download | rockbox-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.c | 6 |
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_*) */ |