diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-03-01 12:31:03 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-03-01 12:31:03 +0000 |
| commit | 485ff795843597483264b1c9ce1a29a154aa6679 (patch) | |
| tree | 63d99c6a73c55f9fb2159633264355209e186b38 /apps/settings.c | |
| parent | 735ea2fd1f746bed999e488eee129ff5b3af059a (diff) | |
| download | rockbox-485ff795843597483264b1c9ce1a29a154aa6679.zip rockbox-485ff795843597483264b1c9ce1a29a154aa6679.tar.gz rockbox-485ff795843597483264b1c9ce1a29a154aa6679.tar.bz2 rockbox-485ff795843597483264b1c9ce1a29a154aa6679.tar.xz | |
Add an ability to set a setting to a specific value with a touchscreen action.
example: %T(0,0,20,12, setting_set, repeat, off)
That will set the repeat mode to "off" when it is pressed.
"setting_set" is the action name
"repeat" is the name of the setting in the config files
"off" is the value to set it to (same values as the legal values in the config files)
Not all settings are supported, outright unsupported settings will fail to parse. Some settings might not work too well if they don't apply instantly (Any that work well int he quickscreen should work well here)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29483 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
| -rw-r--r-- | apps/settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c index e491c5b..e9458dc 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -231,7 +231,7 @@ void settings_load(int which) } } -static bool cfg_string_to_int(int setting_id, int* out, const char* str) +bool cfg_string_to_int(int setting_id, int* out, const char* str) { const char* start = settings[setting_id].cfg_vals; char* end = NULL; |