summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-11-30 12:19:09 +0000
committerAidan MacDonald <amachronic@protonmail.com>2022-12-04 10:46:02 -0500
commit4ff97ae07c9b7beed4c8c9bf965e2ba679d05a20 (patch)
tree0da71115777e19d64138c2221afa15d99a96c440 /apps/gui
parent08aa09e15d11f260f8c0fc6c10cb38b83e369d33 (diff)
downloadrockbox-4ff97ae07c9b7beed4c8c9bf965e2ba679d05a20.tar.gz
rockbox-4ff97ae07c9b7beed4c8c9bf965e2ba679d05a20.zip
settings: More settings ID to pointer conversions
Convert cfg_int_to_string(), cfg_to_string(), settings_write_config(). Change-Id: Icb72d2ff874cf90ffe5fe14878aece0a53f6bd18
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/option_select.c4
-rw-r--r--apps/gui/skin_engine/skin_tokens.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c
index 4687367fba..afd97e418b 100644
--- a/apps/gui/option_select.c
+++ b/apps/gui/option_select.c
@@ -117,7 +117,6 @@ const char *option_get_valuestring(const struct settings_list *setting,
117 { 117 {
118 if (setting->flags & F_CHOICETALKS) 118 if (setting->flags & F_CHOICETALKS)
119 { 119 {
120 int setting_id;
121 const struct choice_setting *info = setting->choice_setting; 120 const struct choice_setting *info = setting->choice_setting;
122 if (info->talks[(int)temp_var] < LANG_LAST_INDEX_IN_ARRAY) 121 if (info->talks[(int)temp_var] < LANG_LAST_INDEX_IN_ARRAY)
123 { 122 {
@@ -125,8 +124,7 @@ const char *option_get_valuestring(const struct settings_list *setting,
125 } 124 }
126 else 125 else
127 { 126 {
128 find_setting(setting->setting, &setting_id); 127 cfg_int_to_string(setting, (int)temp_var, buffer, buf_len);
129 cfg_int_to_string(setting_id, (int)temp_var, buffer, buf_len);
130 } 128 }
131 } 129 }
132 else 130 else
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index 874eff3809..39f1e3b4db 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -1442,7 +1442,7 @@ const char *get_token_value(struct gui_wps *gwps,
1442 goto gtv_ret_numeric_tag_info; 1442 goto gtv_ret_numeric_tag_info;
1443 } 1443 }
1444 } 1444 }
1445 cfg_to_string(token->value.i,buf,buf_size); 1445 cfg_to_string(s, buf, buf_size);
1446 numeric_buf = buf; 1446 numeric_buf = buf;
1447 goto gtv_ret_numeric_tag_info; 1447 goto gtv_ret_numeric_tag_info;
1448 } 1448 }