From 9ac4b446106f733dc1c4be69d97acbcc4c44d9ad Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 9 Jun 2010 16:15:01 +0000 Subject: SKIN BREAK: %pb, %bl and %pv (bar types) changed so the image is the last param instead of the first. skin updater, skins and manual all updated. NEW PARSER: add an 'N' param type which will accept any number of strings, will cause very big problems if this isnt the last param for a tag. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26727 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/skin_parser.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'utils/themeeditor/skin_parser.c') diff --git a/utils/themeeditor/skin_parser.c b/utils/themeeditor/skin_parser.c index 707fffd87a..401181cc3d 100644 --- a/utils/themeeditor/skin_parser.c +++ b/utils/themeeditor/skin_parser.c @@ -543,7 +543,8 @@ int skin_parse_tag(struct skin_element* element, char** document) element->params[i].type = NUMERIC; element->params[i].data.numeric = scan_int(&cursor); } - else if(tolower(*tag_args) == 's' || tolower(*tag_args) == 'f') + else if(tolower(*tag_args) == 'n' || + tolower(*tag_args) == 's' || tolower(*tag_args) == 'f') { /* Scanning a string argument */ element->params[i].type = STRING; @@ -576,7 +577,8 @@ int skin_parse_tag(struct skin_element* element, char** document) cursor++; } - tag_args++; + if (*tag_args != 'N') + tag_args++; /* Checking for the optional bar */ if(*tag_args == '|') -- cgit v1.2.3