From 299c74afc4479699230d2762ca81e8505f31a91c Mon Sep 17 00:00:00 2001 From: alle Date: Thu, 13 May 2010 21:27:42 +0000 Subject: [PATCH] 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 9e42cb8d0..d6f3da8fa 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(); -- 2.11.4.GIT