From 573409193be6e6291c50bca3392e962d22bfb96d Mon Sep 17 00:00:00 2001 From: Alexander Levin Date: Thu, 13 May 2010 21:27:42 +0000 Subject: 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 --- tools/convbdf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/convbdf.c b/tools/convbdf.c index 9e42cb8..d6f3da8 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(); -- cgit v1.1