summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2007-03-25 19:29:10 +0000
committerIan C <ianc@noddybox.co.uk>2007-03-25 19:29:10 +0000
commit2ddd55d7a428cda116cda0303a565ea81a3d41f8 (patch)
tree996f3ad95df6e1f62eef0d4dc6eb28353461241e /source
parent8746d4da5b8612560df2502ee8f6ebdcafa54262 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/main.c7
1 files changed, 6 insertions, 1 deletions
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
};