summaryrefslogtreecommitdiffstats
path: root/utils/skinupdater/skinupdater.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-06-08 15:09:32 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-06-08 15:09:32 +0000
commit50356d8387383a62bad97b2d3ea5b5af8d06805a (patch)
tree44313ad4268bdd517306ccf2df039318e2863992 /utils/skinupdater/skinupdater.c
parent360ed994a3788d9cbdf95554cc6144bea22b2166 (diff)
downloadrockbox-50356d8387383a62bad97b2d3ea5b5af8d06805a.tar.gz
rockbox-50356d8387383a62bad97b2d3ea5b5af8d06805a.tar.bz2
rockbox-50356d8387383a62bad97b2d3ea5b5af8d06805a.zip
The real reason to change the %C was to remove a very nasty hack!
%CL - load the AA %C - check if AA is avilable %Cd - display the AA git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26696 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/skinupdater/skinupdater.c')
-rw-r--r--utils/skinupdater/skinupdater.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/utils/skinupdater/skinupdater.c b/utils/skinupdater/skinupdater.c
index dd4d2f338b..e249996cd5 100644
--- a/utils/skinupdater/skinupdater.c
+++ b/utils/skinupdater/skinupdater.c
@@ -116,6 +116,12 @@ int parse_tag(FILE* out, const char* start, bool in_conditional)
fprintf(out, "%s", tag->name);
return strlen(tag->name);
}
+ if (!strcmp(tag->name, "C"))
+ {
+ fprintf(out, "Cd");
+ return 1;
+ }
+
fprintf(out, "%s", tag->name);
len += strlen(tag->name);
start += len;
@@ -190,10 +196,6 @@ int parse_tag(FILE* out, const char* start, bool in_conditional)
PUTCH(out, '(');
len += 1+dump_arg(out, start+1, 2, true);
}
- else if (MATCH("C"))
- {
- fprintf(out, "%%Cd");
- }
else if (MATCH("Cl"))
{
int read;
@@ -365,7 +367,16 @@ top:
goto top;
break;
case '?':
- PUTCH(out, *in++);
+ if (in[1] == 'C' && in[2] == '<')
+ {
+ fprintf(out, "?C");
+ in += 2;
+ goto top;
+ }
+ else
+ {
+ PUTCH(out, *in++);
+ }
break;
}
len = parse_tag(out, in, level>0);