summaryrefslogtreecommitdiff
path: root/utils/skinupdater/skinupdater.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/skinupdater/skinupdater.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/skinupdater/skinupdater.c')
-rw-r--r--utils/skinupdater/skinupdater.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/utils/skinupdater/skinupdater.c b/utils/skinupdater/skinupdater.c
index 0bb305fb5e..fe7edbb81b 100644
--- a/utils/skinupdater/skinupdater.c
+++ b/utils/skinupdater/skinupdater.c
@@ -130,10 +130,26 @@ int parse_tag(FILE* out, const char* start, bool in_conditional)
130 { 130 {
131 if (*start == '|') 131 if (*start == '|')
132 { 132 {
133 int i=0;
134 char filename[128];
133 len++; start++; 135 len++; start++;
134 PUTCH(out, '('); 136 PUTCH(out, '(');
137 /* |file|x|y|width|height| -> (x,y,width,height,file) */
138 while (start[i] != '|')
139 {
140 filename[i] = start[i];
141 i++;
142 }
143 filename[i] = '\0';
144 len +=i+1;
145 start += i+1;
135 /* TODO: need to verify that we are actually using the long form... */ 146 /* TODO: need to verify that we are actually using the long form... */
136 len += dump_arg(out, start, 5, true); 147 len += dump_arg(out, start, 4, false);
148 if (i>0)
149 {
150 fprintf(out, ",%s", filename);
151 }
152 PUTCH(out, ')');
137 } 153 }
138 } 154 }
139 else if (MATCH("d") || MATCH("D") || MATCH("mv") || MATCH("pS") || MATCH("pE") || MATCH("t") || MATCH("Tl")) 155 else if (MATCH("d") || MATCH("D") || MATCH("mv") || MATCH("pS") || MATCH("pE") || MATCH("t") || MATCH("Tl"))