summaryrefslogtreecommitdiff
path: root/apps/gui/wps_parser.c
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-05 02:44:01 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-05 02:44:01 +0000
commit29e18caacff0fe07736c6652ec75267fce6c9aff (patch)
tree5b081711866989d18f7d9774864a9b716e6b1180 /apps/gui/wps_parser.c
parent2aad3c05f3936c3ecad6b2f67da83a44fcc2a06a (diff)
downloadrockbox-29e18caacff0fe07736c6652ec75267fce6c9aff.tar.gz
rockbox-29e18caacff0fe07736c6652ec75267fce6c9aff.zip
Allow subline timeout values to be changed dynamically in the WPS (e.g. by using conditionals).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13026 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/wps_parser.c')
-rw-r--r--apps/gui/wps_parser.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c
index 07a1df64ac..321286fd05 100644
--- a/apps/gui/wps_parser.c
+++ b/apps/gui/wps_parser.c
@@ -493,13 +493,6 @@ static int parse_subline_timeout(const char *wps_token, struct wps_data *wps_dat
493 if (have_tenth == false) 493 if (have_tenth == false)
494 val *= 10; 494 val *= 10;
495 495
496 if (val > 0)
497 {
498 int line = wps_data->num_lines;
499 int subline = wps_data->num_sublines[line];
500 wps_data->time_mult[line][subline] = val;
501 }
502
503 wps_data->tokens[wps_data->num_tokens].value.i = val; 496 wps_data->tokens[wps_data->num_tokens].value.i = val;
504 return skip; 497 return skip;
505} 498}