summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Levin <al.le@rockbox.org>2010-05-13 21:27:42 +0000
committerAlexander Levin <al.le@rockbox.org>2010-05-13 21:27:42 +0000
commit573409193be6e6291c50bca3392e962d22bfb96d (patch)
tree7ae9b74bd52d109a267f94b3b3214dcf27f552e0
parent6c09fe757abaee6eafa18a2d1051a4553b31df71 (diff)
downloadrockbox-573409193be6e6291c50bca3392e962d22bfb96d.tar.gz
rockbox-573409193be6e6291c50bca3392e962d22bfb96d.tar.bz2
rockbox-573409193be6e6291c50bca3392e962d22bfb96d.zip
Generating .c file make internal data structures unusable so that .fnt file can not be produced after that. Make sure that both options are not used at the same time. Better fix would be to adjust the function that generates .c file, but it would require more time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26001 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--tools/convbdf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/convbdf.c b/tools/convbdf.c
index 9e42cb8d01..d6f3da8fa4 100644
--- a/tools/convbdf.c
+++ b/tools/convbdf.c
@@ -423,6 +423,12 @@ int main(int ac, char **av)
usage();
exit(1);
}
+
+ if (gen_c && gen_fnt) {
+ print_info(".c and .fnt files can not be produced in the same run!\n");
+ exit(1);
+ }
+
if (oflag) {
if (ac > 1 || (gen_c && gen_fnt) || (gen_c && gen_h) || (gen_h && gen_fnt)) {
usage();