summaryrefslogtreecommitdiff
path: root/utils/themeeditor/skin_parser.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-06-09 16:15:01 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-06-09 16:15:01 +0000
commit9ac4b446106f733dc1c4be69d97acbcc4c44d9ad (patch)
tree8b81c2f4e3d0714fd9ec2f0c4a0b4b116055b244 /utils/themeeditor/skin_parser.c
parent20b9020adc521aff2650914695c3e2ccd0025188 (diff)
downloadrockbox-9ac4b446106f733dc1c4be69d97acbcc4c44d9ad.tar.gz
rockbox-9ac4b446106f733dc1c4be69d97acbcc4c44d9ad.zip
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
Diffstat (limited to 'utils/themeeditor/skin_parser.c')
-rw-r--r--utils/themeeditor/skin_parser.c6
1 files changed, 4 insertions, 2 deletions
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)
543 element->params[i].type = NUMERIC; 543 element->params[i].type = NUMERIC;
544 element->params[i].data.numeric = scan_int(&cursor); 544 element->params[i].data.numeric = scan_int(&cursor);
545 } 545 }
546 else if(tolower(*tag_args) == 's' || tolower(*tag_args) == 'f') 546 else if(tolower(*tag_args) == 'n' ||
547 tolower(*tag_args) == 's' || tolower(*tag_args) == 'f')
547 { 548 {
548 /* Scanning a string argument */ 549 /* Scanning a string argument */
549 element->params[i].type = STRING; 550 element->params[i].type = STRING;
@@ -576,7 +577,8 @@ int skin_parse_tag(struct skin_element* element, char** document)
576 cursor++; 577 cursor++;
577 } 578 }
578 579
579 tag_args++; 580 if (*tag_args != 'N')
581 tag_args++;
580 582
581 /* Checking for the optional bar */ 583 /* Checking for the optional bar */
582 if(*tag_args == '|') 584 if(*tag_args == '|')