From 2ddd55d7a428cda116cda0303a565ea81a3d41f8 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 25 Mar 2007 19:29:10 +0000 Subject: Added code to allow mkrelease to pick up a version number from the version file. If built without the flag then main generates a build timestamp. --- source/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/main.c') diff --git a/source/main.c b/source/main.c index 5193967..70ce02e 100644 --- a/source/main.c +++ b/source/main.c @@ -39,6 +39,11 @@ #include "splashimg_bin.h" #include "rom_font_bin.h" +#ifndef DS81_VERSION +#define DS81_VERSION "DEVEL " __TIME__ "/" __DATE__ +#endif + + /* ---------------------------------------- STATIC DATA */ static const char *main_menu[]= @@ -85,6 +90,7 @@ static void Splash(void) static const char *text[]= { "DS81 \177 2006 Ian C", + DS81_VERSION, " ", "ZX81 ROM \177 1981", "Nine Tiles Networks LTD", @@ -95,7 +101,6 @@ static void Splash(void) " ", " ", " ", - " ", "Checking for FAT device...", NULL }; -- cgit v1.2.3